Skip to content

Commit 376ce05

Browse files
authored
Merge pull request #82415 from compnerd/cmake-wiring
utils: adopt `SwiftCore_DIR` in new builds
2 parents cca0bf6 + e55af87 commit 376ce05

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

utils/build.ps1

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2380,8 +2380,7 @@ function Build-ExperimentalRuntime {
23802380
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
23812381
CMAKE_SYSTEM_NAME = $Platform.OS.ToString();
23822382

2383-
Swift_SDKROOT = (Get-SwiftSDK $Platform.OS -Identifier "$($Platform.OS)Experimental");
2384-
SwiftCore_ARCH_SUBDIR = $Platform.Architecture.LLVMName;
2383+
SwiftCore_DIR = "$(Get-ProjectBinaryCache $Platform ExperimentalRuntime)\cmake\SwiftCore";
23852384
}
23862385

23872386
Build-CMakeProject `
@@ -2399,8 +2398,7 @@ function Build-ExperimentalRuntime {
23992398
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
24002399
CMAKE_SYSTEM_NAME = $Platform.OS.ToString();
24012400

2402-
Swift_SDKROOT = (Get-SwiftSDK $Platform.OS -Identifier "$($Platform.OS)Experimental");
2403-
SwiftCore_ARCH_SUBDIR = $Platform.Architecture.LLVMName;
2401+
SwiftCore_DIR = "$(Get-ProjectBinaryCache $Platform ExperimentalRuntime)\cmake\SwiftCore";
24042402
}
24052403

24062404
Build-CMakeProject `
@@ -2418,8 +2416,7 @@ function Build-ExperimentalRuntime {
24182416
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
24192417
CMAKE_SYSTEM_NAME = $Platform.OS.ToString();
24202418

2421-
Swift_SDKROOT = (Get-SwiftSDK $Platform.OS -Identifier "$($Platform.OS)Experimental");
2422-
SwiftCore_ARCH_SUBDIR = $Platform.Architecture.LLVMName;
2419+
SwiftCore_DIR = "$(Get-ProjectBinaryCache $Platform ExperimentalRuntime)\cmake\SwiftCore";
24232420
}
24242421
}
24252422
}

0 commit comments

Comments
 (0)