Skip to content

Fix build bootstrap for Visual Studio Build Tools and ARM64 hosts - #1142

Draft
ChazGo wants to merge 1 commit into
ramensoftware:mainfrom
ChazGo:upstream/fix-arm64-build-bootstrap
Draft

ChazGo wants to merge 1 commit into
ramensoftware:mainfrom
ChazGo:upstream/fix-arm64-build-bootstrap

Conversation

@ChazGo

@ChazGo ChazGo commented Oct 18, 2026

Copy link
Copy Markdown

Change

Fix build.bat bootstrap on Windows ARM64 and Visual Studio Build Tools installations:

  • Discover installed C++ tools with vswhere -products * instead of assuming a fixed Community-edition path.
  • Select arm64_x64 on ARM64, including under emulation; keep amd64 elsewhere.
  • Fail explicitly if discovery or environment setup fails.

Preserve already-configured developer prompts and the existing targets: x64 application, Win32/x64/ARM64 engines. This does not add a native ARM64 application or improve runtime speed.

One file, 14 added lines and one removed line. Independent of the catalog performance change, based on current main (0cfc358, 2.0.0-alpha.7).

Evidence

On ARM64 Windows with Visual Studio 2022 Build Tools 17.14 (MSVC 14.44, SDK 10.0.26100):

  • Before: the hard-coded Community path does not exist; environment setup fails and MSBuild.exe is not found.
  • After: build.bat Release discovers Build Tools, initializes arm64_x64, and builds all four current-upstream Release targets with zero warnings/errors. Changed current-upstream C++ sources were compiled and linked, not merely checked as up-to-date.
  • Missing-installation simulation returns exit code 1 with No Visual Studio installation with C++ build tools was found.

No dependency, engine, or output-architecture changes. x64-host and preconfigured-prompt paths retain the existing behavior but were not separately executed on an x64 machine.

Use vswhere to find installations including Build Tools, select the native ARM64 host toolchain when appropriate, and report setup failures before invoking MSBuild. Preserve existing developer prompts and all output architectures.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 906b9e0e-c29f-48c8-8962-5afae98fecc8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants