mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:15:51 +01:00
[PR #2053] Find Visual Studio Preview when building llvm-mc (BUILD-LLVM-MC-PREVIEW-FALLBACK) #2059
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2059
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2053
Author: @alexandersato0830
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:codex/vswhere-preview-fallback📝 Commits (1)
722d39cFind a Preview-only Visual Studio when building llvm-mc📊 Changes
1 file changed (+3 additions, -0 deletions)
View changed files
📝
scripts/build_llvm_mc.ps1(+3 -0)📄 Description
Claimed in the coordination issue as: BUILD-LLVM-MC-PREVIEW-FALLBACK
Depends on: #1871 and #2066 (overlapping LLVM discovery edits. #2066 also covers three other entry points).
What and why
On a Windows machine with only Visual Studio Preview, the LLVM build script exits before building because the default
vswherequery excludes prereleases. Retry with-prereleaseonly when the stable query returns no installation. The existing stable toolchain remains preferred, and the same error is shown if neither query finds a match. Original reproduction · Microsoft vswhere documentationTested
vswherestub for four cases: stable only, stable and Preview, Preview only, and neither. Main9f9a7c5failed the Preview-only case. All four passed with the fix, including stable preference and the unchanged no-toolchain error.py -3.14 -I tests/test_build_percent_path.pyandpy -3.14 -I tests/test_build_batch_launch.pypassed (5 tests).git diff --checkand the source-only check. This host has stable Visual Studio, so the Preview path was tested with the stub.GPUs tested: n/a.
AI-assisted: yes.
main.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.