mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:00:52 +01:00
[PR #2060] fix: detect Visual Studio Preview installations #2068
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#2068
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/2060
Author: @hcentral07
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/vs-insiders-detection📝 Commits (1)
dad93dcfix: detect Visual Studio Preview installations📊 Changes
1 file changed (+34 additions, -11 deletions)
View changed files
📝
scripts/build_llvm_mc.ps1(+34 -11)📄 Description
Claimed in the coordination issue as: TEST-XX
Depends on:
Fixes:
What and why
scripts/build_llvm_mc.ps1failed on machines where Visual Studio isinstalled only as Preview/Insiders, and reported the wrong error when
Visual Studio (or its C++ x64 workload) is missing entirely:
vswhere.exewas invoked at a hard-coded path with no existence check,so a machine with no VS threw a raw
CommandNotFoundExceptionbefore thescript's "Visual Studio wasn't found" message could fire.
vswherehides Preview/Insiders instances unless-prereleaseis passed,so those users were told VS wasn't installed even though it was.
died deep inside
cmd.exeinstead of failing with a clear message.This makes VS detection fall back to
-prerelease, guards thevswhere.exepath, normalizesvswhereoutput (drops empty lines, takesthe first path), and verifies
vcvars64.batexists before the build starts.Tested
powershell -ExecutionPolicy Bypass -File scripts\build_llvm_mc.ps1on a machine with VS 2022 stable: builds
llvm-mc.exe, thes_endpgmprobe passes,
LLVM_MCis set.-prerelease(previously reported "not found").
Visual Studio wasn't found (vswhere.exe missing at '…')instead of a raw cmdlet error.vcvars64.batmoved away: fails withvcvars64.bat wasn't found at '…'; the VS install looks incomplete.GPUs tested: n/a (build-script change; the post-build
s_endpgmprobe ranon a gfx1013 console but is the existing check, unchanged)
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a — no translator rule changed; the box is checked only because the checklist reads as all-or-nothing. If your repo treats n/a as unchecked, leave it[ ]and note "n/a" here.)🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.