Skip to content

Commit 1668373

Browse files
committed
Use Response file for SwiftFoundation
The command-line length to compile SwiftFoundation for arm64 exceeds the maximum command-line length on Windows. Force CMake to use a response file to get around this limitation.
1 parent 2571e05 commit 1668373

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

utils/build.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1928,6 +1928,7 @@ function Build-Foundation([Platform]$Platform, $Arch, [switch]$Test = $false) {
19281928
-UseBuiltCompilers ASM,C,CXX,Swift `
19291929
-SwiftSDK:$SDKRoot `
19301930
-Defines (@{
1931+
CMAKE_NINJA_FORCE_RESPONSE_FILE = "YES";
19311932
ENABLE_TESTING = "NO";
19321933
FOUNDATION_BUILD_TOOLS = if ($Platform -eq "Windows") { "YES" } else { "NO" };
19331934
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";

0 commit comments

Comments
 (0)