Skip to content

Commit 2f60c73

Browse files
authored
Merge pull request #80039 from compnerd/crossed
utils: explicitly cross-compile the experimental runtimes
2 parents d6ac1ec + 74ab62c commit 2f60c73

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
@@ -2261,7 +2261,10 @@ function Build-ExperimentalRuntime {
22612261
-Defines @{
22622262
BUILD_SHARED_LIBS = if ($Static) { "NO" } else { "YES" };
22632263
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
2264+
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Arch);
2265+
CMAKE_Swift_COMPILER_WORKS = "YES";
22642266
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
2267+
CMAKE_SYSTEM_NAME = $Platform.ToString();
22652268
dispatch_DIR = "$(Get-TargetProjectBinaryCache $Arch Dispatch)\cmake\modules";
22662269
}
22672270
}

0 commit comments

Comments
 (0)