Skip to content

Commit b65a172

Browse files
committed
[build-script] Add --llvm-enable-modules
1 parent 22de021 commit b65a172

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/build-script-impl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ KNOWN_SETTINGS=(
6363
swift-analyze-code-coverage "not-merged" "Code coverage analysis mode for Swift (false, not-merged, merged). Defaults to false if the argument is not present, and not-merged if the argument is present without a modifier."
6464
swift-tools-enable-lto "" "enable LTO compilation of Swift tools. *NOTE* This does not include the swift standard library and runtime. Must be set to one of 'thin' or 'full'"
6565
llvm-enable-lto "" "Must be set to one of 'thin' or 'full'"
66+
llvm-enable-modules "" "enable building llvm using modules"
6667
swift-tools-num-parallel-lto-link-jobs "" "The number of parallel link jobs to use when compiling swift tools"
6768
llvm-num-parallel-lto-link-jobs "" "The number of parallel link jobs to use when compiling llvm"
6869
swift-stdlib-build-type "Debug" "the CMake build variant for Swift"
@@ -700,6 +701,7 @@ function set_build_options_for_host() {
700701
-DCOMPILER_RT_ENABLE_WATCHOS:BOOL=FALSE
701702
-DCOMPILER_RT_ENABLE_TVOS:BOOL=FALSE
702703
-DSANITIZER_MIN_OSX_VERSION="${cmake_osx_deployment_target}"
704+
-DLLVM_ENABLE_MODULES:BOOL="$(true_false ${LLVM_ENABLE_MODULES})"
703705
)
704706
if [[ $(is_llvm_lto_enabled) == "TRUE" ]]; then
705707
if [[ $(cmake_needs_to_specify_standard_computed_defaults) == "TRUE" ]]; then

0 commit comments

Comments
 (0)