Skip to content

Commit 8ea7657

Browse files
committed
Use a response file for stdlib sources
The experimental stdlib runtime build has several sources files, resulting in an absolutely massive commandline. This seems to be approaching, or passing, the maximum command line length on Windows. Switch the Windows build to use a response file generated by CMake to pass the source files to the compiler.
1 parent a2a760a commit 8ea7657

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
@@ -2338,6 +2338,7 @@ function Build-ExperimentalRuntime {
23382338
CMAKE_Swift_COMPILER_WORKS = "YES";
23392339
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
23402340
CMAKE_SYSTEM_NAME = $Platform.OS.ToString();
2341+
CMAKE_NINJA_FORCE_RESPONSE_FILE = "YES";
23412342

23422343
# NOTE(compnerd) we can get away with this currently because we only
23432344
# use the C portion of the dispatch build, which is always built

0 commit comments

Comments
 (0)