mirror of
https://github.com/ruby/ruby.git
synced 2026-11-08 01:20:26 +08:00
The overlay triplet for arm64-windows builds the vcpkg ports with MSVC 14.44, and `CC=clang-cl` needs the LLVM component. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
577 B
Batchfile
Executable File
15 lines
577 B
Batchfile
Executable File
@echo off
|
|
@setlocal EnableExtensions DisableDelayedExpansion || exit /b -1
|
|
|
|
set "components=VC.Tools.x86.x64 VC.Redist.14.Latest CoreBuildTools"
|
|
set "components=%components% Windows11SDK.26100 VC.Llvm.Clang"
|
|
if /i "%PROCESSOR_ARCHITECTURE%" == "ARM64" (
|
|
set components=%components% VC.Tools.ARM64 VC.Tools.ARM64EC VC.14.44.17.14.ARM64
|
|
)
|
|
set override=--passive
|
|
for %%I in (%components%) do (
|
|
call set "override=%%override%% --add Microsoft.VisualStudio.Component.%%I"
|
|
)
|
|
echo on
|
|
winget install --id Microsoft.VisualStudio.BuildTools --override "%override%"
|