We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 35f55e8 + d2d5925 commit 012ac5dCopy full SHA for 012ac5d
utils/swift_build_support/swift_build_support/products/ninja.py
@@ -57,6 +57,7 @@ def build(self):
57
"-S", self.source_dir,
58
"-B", self.build_dir,
59
"-DCMAKE_BUILD_TYPE=Release",
60
+ "-DBUILD_TESTING=OFF",
61
f"-DCMAKE_C_COMPILER={self.toolchain.cc}",
62
f"-DCMAKE_CXX_COMPILER={self.toolchain.cxx}"])
63
shell.call([self.toolchain.cmake, "--build", self.build_dir])
utils/swift_build_support/tests/products/test_ninja.py
@@ -93,6 +93,7 @@ def test_build(self):
93
-S {self.workspace.source_dir('ninja')} \
94
-B {self.workspace.build_dir('build', 'ninja')} \
95
-DCMAKE_BUILD_TYPE=Release \
96
+-DBUILD_TESTING=OFF \
97
-DCMAKE_C_COMPILER=/path/to/cc \
98
-DCMAKE_CXX_COMPILER=/path/to/cxx
99
+ {self.toolchain.cmake} --build {self.workspace.build_dir('build', 'ninja')}
0 commit comments