You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: utils/build-script-impl
+86-38Lines changed: 86 additions & 38 deletions
Original file line number
Diff line number
Diff line change
@@ -123,7 +123,6 @@ KNOWN_SETTINGS=(
123
123
skip-test-cmark """set to skip testing CommonMark"
124
124
skip-test-lldb """set to skip testing lldb"
125
125
skip-test-swift """set to skip testing Swift"
126
-
skip-test-llvm """set to skip testing LLVM. Set to true by default"
127
126
skip-test-llbuild """set to skip testing llbuild"
128
127
skip-test-swiftpm """set to skip testing swiftpm"
129
128
skip-test-xctest """set to skip testing xctest"
@@ -161,7 +160,8 @@ KNOWN_SETTINGS=(
161
160
build-serialized-stdlib-unittest "0""set to 1 to build the StdlibUnittest module with -sil-serialize-all"
162
161
build-sil-debugging-stdlib "0""set to 1 to build the Swift standard library with -gsil to enable debugging and profiling on SIL level"
163
162
check-incremental-compilation "0""set to 1 to compile swift libraries multiple times to check if incremental compilation works"
164
-
source-tree-includes-tests "1""set to 0 to allow the build to proceed when 'test' directory is missing (required for B&I builds)"
163
+
llvm-include-tests "1""Set to true to generate testing targets for LLVM. Set to true by default."
164
+
swift-include-tests "1""Set to true to generate testing targets for Swift. This allows the build to proceed when 'test' directory is missing (required for B&I builds)"
165
165
native-llvm-tools-path """directory that contains LLVM tools that are executable on the build machine"
166
166
native-clang-tools-path """directory that contains Clang tools that are executable on the build machine"
167
167
native-swift-tools-path """directory that contains Swift tools that are executable on the build machine"
@@ -315,6 +315,83 @@ function is_swift_lto_enabled() {
315
315
fi
316
316
}
317
317
318
+
# Compute the cmake flags related to disabling llvm tools as a result of our
319
+
# needs for testing LLVM/Swift.
320
+
functioncompute_cmake_llvm_tool_disable_flags() {
321
+
if [[ $(false_true "${LLVM_INCLUDE_TESTS}")=="FALSE" ]];then
322
+
return
323
+
fi
324
+
325
+
local OUTPUT=()
326
+
local EXTRA_LLVM_CMAKE_OPTIONS=(
327
+
# Do not include LLVM tests.
328
+
-DLLVM_INCLUDE_TESTS:BOOL=NO
329
+
-DCLANG_INCLUDE_TESTS:BOOL=NO
330
+
)
331
+
332
+
# Disable LLVM Tools that Swift does not use for testing.
0 commit comments