Skip to content

Commit 74ab62c

Browse files
committed
utils: explicitly cross-compile the experimental runtimes
Pass additional parameters to setup the cross-compilation for the experimental runtime.
1 parent 275a679 commit 74ab62c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/build.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2217,7 +2217,10 @@ function Build-ExperimentalRuntime {
22172217
-Defines @{
22182218
BUILD_SHARED_LIBS = if ($Static) { "NO" } else { "YES" };
22192219
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
2220+
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Arch);
2221+
CMAKE_Swift_COMPILER_WORKS = "YES";
22202222
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
2223+
CMAKE_SYSTEM_NAME = $Platform.ToString();
22212224
dispatch_DIR = "$(Get-TargetProjectBinaryCache $Arch Dispatch)\cmake\modules";
22222225
}
22232226
}

0 commit comments

Comments
 (0)