Skip to content

Commit b0747b2

Browse files
authored
Merge pull request #81921 from compnerd/android-parameters
utils: repair the Android build
2 parents 478823c + 12e18ea commit b0747b2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

utils/build.ps1

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2360,6 +2360,9 @@ function Build-ExperimentalRuntime {
23602360
CMAKE_Swift_COMPILER_WORKS = "YES";
23612361
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
23622362
CMAKE_SYSTEM_NAME = $Platform.OS.ToString();
2363+
2364+
Swift_SDKROOT = (Get-SwiftSDK $Platform.OS -Identifier "$($Platform.OS)Experimental");
2365+
SwiftCore_ARCH_SUBDIR = $Platform.Architecture.LLVMName;
23632366
}
23642367

23652368
Build-CMakeProject `
@@ -2376,6 +2379,9 @@ function Build-ExperimentalRuntime {
23762379
CMAKE_Swift_COMPILER_WORKS = "YES";
23772380
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
23782381
CMAKE_SYSTEM_NAME = $Platform.OS.ToString();
2382+
2383+
Swift_SDKROOT = (Get-SwiftSDK $Platform.OS -Identifier "$($Platform.OS)Experimental");
2384+
SwiftCore_ARCH_SUBDIR = $Platform.Architecture.LLVMName;
23792385
}
23802386

23812387
Build-CMakeProject `
@@ -2392,6 +2398,9 @@ function Build-ExperimentalRuntime {
23922398
CMAKE_Swift_COMPILER_WORKS = "YES";
23932399
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
23942400
CMAKE_SYSTEM_NAME = $Platform.OS.ToString();
2401+
2402+
Swift_SDKROOT = (Get-SwiftSDK $Platform.OS -Identifier "$($Platform.OS)Experimental");
2403+
SwiftCore_ARCH_SUBDIR = $Platform.Architecture.LLVMName;
23952404
}
23962405
}
23972406
}

0 commit comments

Comments
 (0)