Skip to content

Commit 366589b

Browse files
Merge pull request #3916 from vedantk/llvm_enable_modules
Merging into master-next. Enable module builds of llvm/clang by default
2 parents 48ff651 + 75fa5ea commit 366589b

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
@@ -76,6 +76,7 @@ KNOWN_SETTINGS=(
7676
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."
7777
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'"
7878
llvm-enable-lto "" "Must be set to one of 'thin' or 'full'"
79+
llvm-enable-modules "1" "enable building llvm using modules"
7980
swift-tools-num-parallel-lto-link-jobs "" "The number of parallel link jobs to use when compiling swift tools"
8081
llvm-num-parallel-lto-link-jobs "" "The number of parallel link jobs to use when compiling llvm"
8182
swift-stdlib-build-type "Debug" "the CMake build variant for Swift"
@@ -634,6 +635,7 @@ function set_build_options_for_host() {
634635
-DCOMPILER_RT_ENABLE_WATCHOS:BOOL=FALSE
635636
-DCOMPILER_RT_ENABLE_TVOS:BOOL=FALSE
636637
-DSANITIZER_MIN_OSX_VERSION="${cmake_osx_deployment_target}"
638+
-DLLVM_ENABLE_MODULES:BOOL="$(true_false ${LLVM_ENABLE_MODULES})"
637639
)
638640
if [[ $(is_llvm_lto_enabled) == "TRUE" ]]; then
639641
if [[ $(cmake_needs_to_specify_standard_computed_defaults) == "TRUE" ]]; then

0 commit comments

Comments
 (0)