X Tutup
The Wayback Machine - https://web.archive.org/web/20230131200349/https://github.com/nodejs/node/pull/46420
Skip to content
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

Fix Visual Studio installation detection for Arm64 #46420

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Blackhex
Copy link

@Blackhex Blackhex commented Jan 30, 2023

When vcbuild.bat arm64 was run on Windows Arm64 machine, the vswhere_usability_wrapper.cmd was detecting proper installation of Visual Studio according to presence of x64 Build Tools which fails when there is only Arm64 version of the Build Tools.

@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to build files or the CI. install Issues and PRs related to the installers. needs-ci PRs that need a full CI run. tools Issues and PRs related to the tools directory. windows Issues and PRs related to the Windows platform. labels Jan 30, 2023
@Blackhex Blackhex force-pushed the fix-vswhere-arm64 branch 2 times, most recently from e85db92 to 628eae5 Compare Jan 30, 2023
@@ -257,7 +256,7 @@ echo Looking for Visual Studio 2022
@rem cleared first as vswhere_usability_wrapper.cmd doesn't when it fails to
@rem detect the version searched for
if not defined target_env set "VCINSTALLDIR="
call tools\msvs\vswhere_usability_wrapper.cmd "[17.0,18.0)" "prerelease"
Copy link
Author

@Blackhex Blackhex Jan 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any reason why pre-release Build Tools are used? The stable 17.4.4 version should be enough to compile for Arm64.

@Blackhex Blackhex force-pushed the fix-vswhere-arm64 branch 2 times, most recently from 02eac19 to 3aca22a Compare Jan 30, 2023
@bnoordhuis
Copy link
Member

@nodejs/platform-windows-arm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Issues and PRs related to build files or the CI. install Issues and PRs related to the installers. needs-ci PRs that need a full CI run. tools Issues and PRs related to the tools directory. windows Issues and PRs related to the Windows platform.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants
X Tutup