Skip to content

Commit d09424a

Browse files
committed
build.ps1: add CMAKE_NINJA_FORCE_RESPONSE_FILE
Add the flag to force a response file usage with Ninja to avoid exhausing the Windows command line limits.
1 parent 7c9bd16 commit d09424a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/build.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3159,6 +3159,7 @@ function Build-ExperimentalSDK([Hashtable] $Platform) {
31593159
-Defines @{
31603160
BUILD_SHARED_LIBS = "YES";
31613161
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
3162+
CMAKE_NINJA_FORCE_RESPONSE_FILE = "YES";
31623163
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
31633164
ENABLE_TESTING = "NO";
31643165

@@ -3189,6 +3190,7 @@ function Build-ExperimentalSDK([Hashtable] $Platform) {
31893190
-Defines @{
31903191
BUILD_SHARED_LIBS = "NO";
31913192
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
3193+
CMAKE_NINJA_FORCE_RESPONSE_FILE = "YES";
31923194
CMAKE_Swift_FLAGS = @("-static-stdlib", "-Xfrontend", "-use-static-resource-dir");
31933195
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
31943196
ENABLE_TESTING = "NO";

0 commit comments

Comments
 (0)