[PR #2053] Find Visual Studio Preview when building llvm-mc (BUILD-LLVM-MC-PREVIEW-FALLBACK) #2059

Open
opened 2026-11-26 21:19:53 +01:00 by 4ld0 · 0 comments
Owner

📋 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)

  • 722d39c Find 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 vswhere query excludes prereleases. Retry with -prerelease only 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 documentation

Tested

  • On Windows 11 with Windows PowerShell 5.1, executed the script's discovery block with a controlled vswhere stub for four cases: stable only, stable and Preview, Preview only, and neither. Main 9f9a7c5 failed 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.py and py -3.14 -I tests/test_build_batch_launch.py passed (5 tests).
  • Verified git diff --check and 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.

  • Based on current main.
  • One topic.
  • Source-only change.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/2053 **Author:** [@alexandersato0830](https://github.com/alexandersato0830) **Created:** 11/25/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/vswhere-preview-fallback` --- ### 📝 Commits (1) - [`722d39c`](https://github.com/ubiquitarianism/leonida/commit/722d39cf9b1db5520b2b26c86882cbceebd24f33) Find a Preview-only Visual Studio when building llvm-mc ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `scripts/build_llvm_mc.ps1` (+3 -0) </details> ### 📄 Description Claimed in the coordination issue as: [BUILD-LLVM-MC-PREVIEW-FALLBACK](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7171767396) 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 `vswhere` query excludes prereleases. Retry with `-prerelease` only 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](https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7171221172) · [Microsoft vswhere documentation](https://github.com/microsoft/vswhere#readme) ### Tested - On Windows 11 with Windows PowerShell 5.1, executed the script's discovery block with a controlled `vswhere` stub for four cases: stable only, stable and Preview, Preview only, and neither. Main `9f9a7c5` failed 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.py` and `py -3.14 -I tests/test_build_batch_launch.py` passed (5 tests). - Verified `git diff --check` and 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. - [x] Based on current `main`. - [x] One topic. - [x] Source-only change. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#2059
No description provided.