Skip to content

Make LLVM install optional in setup-buildtools#1433

Open
bmehta001 wants to merge 2 commits intomicrosoft:mainfrom
bmehta001:bhamehta/1014-optional-llvm-install
Open

Make LLVM install optional in setup-buildtools#1433
bmehta001 wants to merge 2 commits intomicrosoft:mainfrom
bmehta001:bhamehta/1014-optional-llvm-install

Conversation

@bmehta001
Copy link
Copy Markdown
Contributor

@bmehta001 bmehta001 commented May 2, 2026

Fixes #1014

Make tools/setup-buildtools.cmd stop installing LLVM unless INSTALL_LLVM is set. This matches the behavior described in the docs.

Changes

  • remove llvm from the unconditional Chocolatey bootstrap package list
  • keep LLVM installation behind the existing INSTALL_LLVM gate
  • clarify in the script comments that LLVM remains optional and is still handled by install-llvm.cmd when requested

Stop the bootstrap script from pulling LLVM through Chocolatey on every run so existing LLVM installations and non-clang setups are not modified unexpectedly.

Files changed:
- tools/setup-buildtools.cmd

Co-authored-by: Copilot <[email protected]>
@bmehta001 bmehta001 requested a review from a team as a code owner May 2, 2026 05:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Windows build tools bootstrap script to avoid installing LLVM via Chocolatey unless explicitly requested, aligning setup-buildtools.cmd behavior with the existing INSTALL_LLVM opt-in flow.

Changes:

  • Removes llvm from the unconditional Chocolatey install list.
  • Keeps LLVM installation behind the existing if DEFINED INSTALL_LLVM gate (install-llvm.cmd).
  • Clarifies comments in setup-buildtools.cmd to document LLVM’s optional behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bmehta001 bmehta001 self-assigned this May 3, 2026
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.

setup-buildtools.cmd also install llvm it seems

2 participants