-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add gulp targets, fix build for Windows on Arm. #85326
Merged
Merged
Changes from 7 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
84f6086
build: build ia32 remote extension for Windows on Arm
richard-townsend-arm a3b66c9
build: add skeletal gulp targets for Windows on Arm
richard-townsend-arm 9df55b7
build: read npm_config_arch whilst getting electron
richard-townsend-arm c97d0b6
fix: address review comments
richard-townsend-arm 2260c13
fix: address further review comments
richard-townsend-arm 86ddd49
fix: fallback to ia32
richard-townsend-arm 38126cd
deps: vscode-sqlite3@4.0.10
richard-townsend-arm 9267738
address feedback
joaomoreno 82860b3
:lipstick:
joaomoreno b925790
fix arm64
joaomoreno 2e0cf81
:lipstick:
joaomoreno File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,7 +107,7 @@ function getElectron(arch: string): () => NodeJS.ReadWriteStream { | |
}; | ||
} | ||
|
||
async function main(arch = process.arch): Promise<void> { | ||
async function main(arch = process.env["npm_config_arch"] || process.arch): Promise<void> { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't need this, since the build isn't fetching electron from here. |
||
const version = getElectronVersion(); | ||
const electronPath = path.join(root, '.build', 'electron'); | ||
const versionFile = path.join(electronPath, 'version'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,17 +25,28 @@ function yarnInstall(location, opts) { | |
console.log(`Installing dependencies in ${location}...`); | ||
console.log(`$ yarn ${args.join(' ')}`); | ||
const result = cp.spawnSync(yarn, args, opts); | ||
richard-townsend-arm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
if (result.error || result.status !== 0) { | ||
process.exit(1); | ||
} | ||
} | ||
|
||
function remoteOpts() { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again, let's remove this and leave |
||
opts = {}; | ||
if (process.env["npm_config_arch"] == "arm64") { | ||
// Temporarily set remote arch to x86, because the remote portion builds | ||
// against node, which is not consistently supported on Windows on Arm | ||
// (yet). | ||
opts.env = JSON.parse(JSON.stringify(process.env)) | ||
opts.env["npm_config_arch"] = "ia32" | ||
} | ||
return opts; | ||
} | ||
|
||
yarnInstall('extensions'); // node modules shared by all extensions | ||
|
||
yarnInstall('remote'); // node modules used by vscode server | ||
yarnInstall('remote', remoteOpts()); // node modules used by vscode server | ||
|
||
yarnInstall('remote/web'); // node modules used by vscode web | ||
yarnInstall('remote/web', remoteOpts()); // node modules used by vscode web | ||
|
||
const allExtensionFolders = fs.readdirSync('extensions'); | ||
const extensions = allExtensionFolders.filter(e => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove this and focus on the client bits for now.