@@ -175,6 +175,12 @@ $msbuild = "$VSInstallRoot\MSBuild\Current\Bin\$BuildArchName\MSBuild.exe"
175
175
# Avoid $env:ProgramFiles in case this script is running as x86
176
176
$UnixToolsBinDir = " $env: SystemDrive \Program Files\Git\usr\bin"
177
177
178
+ # The make tool isn't part of MSYS, but we need it for LLDB tests
179
+ $MakeToolPath = " C:/Program Files (x86)/GnuWin32/bin/make.exe"
180
+ if (-not (Test-Path $MakeToolPath )) {
181
+ & winget install GnuWin32.Make
182
+ }
183
+
178
184
$python = " ${env: ProgramFiles(x86)} \Microsoft Visual Studio\Shared\Python39_64\python.exe"
179
185
if (-not (Test-Path $python )) {
180
186
$python = (where.exe python) | Select-Object - First 1
@@ -1364,12 +1370,6 @@ function Build-Compilers() {
1364
1370
& $python - m pip install psutil
1365
1371
& $python - m pip install packaging
1366
1372
1367
- # Install make tool from GunWin32
1368
- $MakeToolPath = " C:/Program Files (x86)/GnuWin32/bin/make.exe"
1369
- if (-not (Test-Path $MakeToolPath )) {
1370
- & winget install GnuWin32.Make
1371
- }
1372
-
1373
1373
# Transitive dependency if _lldb.pyd: CMake cannot copy it, because it
1374
1374
# doesn't exist during the initial build.
1375
1375
$RuntimeBinaryCache = Get-TargetProjectBinaryCache $Arch Runtime
@@ -1383,8 +1383,6 @@ function Build-Compilers() {
1383
1383
LLVM_ENABLE_PROJECTS = " clang;clang-tools-extra;lld;lldb" ;
1384
1384
# No watchpoint support on windows: https://github.com/llvm/llvm-project/issues/24820
1385
1385
LLDB_TEST_USER_ARGS = " --skip-category=watchpoint" ;
1386
- # TODO: winget install GnuWin32.Make
1387
- LLDB_TEST_MAKE = $MakeToolPath
1388
1386
# gtest sharding breaks llvm-lit's --xfail and LIT_XFAIL inputs: https://github.com/llvm/llvm-project/issues/102264
1389
1387
LLVM_LIT_ARGS = " -v --no-gtest-sharding --show-xfail --show-unsupported" ;
1390
1388
# LLDB Unit tests link against this library
@@ -1429,6 +1427,7 @@ function Build-Compilers() {
1429
1427
LLDB_PYTHON_EXT_SUFFIX = " .pyd" ;
1430
1428
LLDB_PYTHON_RELATIVE_PATH = " lib/site-packages" ;
1431
1429
LLDB_TABLEGEN = (Join-Path - Path $BuildTools - ChildPath " lldb-tblgen.exe" );
1430
+ LLDB_TEST_MAKE = $MakeToolPath ;
1432
1431
LLVM_CONFIG_PATH = (Join-Path - Path $BuildTools - ChildPath " llvm-config.exe" );
1433
1432
LLVM_EXTERNAL_SWIFT_SOURCE_DIR = " $SourceCache \swift" ;
1434
1433
LLVM_NATIVE_TOOL_DIR = $BuildTools ;
0 commit comments