Skip to content

Commit c084b14

Browse files
committed
[runtimes] Shrink the set of runtimes included in the bootstrapping build by default
This patch is in preparation for removing libcxx, libcxxabi and libunwind from LLVM_ENABLE_PROJECTS. When we make that switch, folks who were previously using LLVM_ENABLE_PROJECTS=all in order to build those runtimes will be able to add LLVM_ENABLE_RUNTIMES=all to start building those projects using the bootstrapping build. This is technically a breaking change for folks who had been using LLVM_ENABLE_RUNTIMES=all, however I suspect the set of people currently doing that is extremely small, so this is likely acceptable (more than breaking folks who are using LLVM_ENABLE_PROJECTS=all). Differential Revision: https://reviews.llvm.org/D132479
1 parent 2da0df5 commit c084b14

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,10 @@ if ("flang" IN_LIST LLVM_ENABLE_PROJECTS)
144144
endif()
145145

146146
# Select the runtimes to build
147-
set(LLVM_DEFAULT_RUNTIMES "compiler-rt;libc;libcxx;libcxxabi;libunwind;openmp")
147+
#
148+
# As we migrate runtimes to using the bootstrapping build, the set of default runtimes
149+
# should grow as we remove those runtimes from LLVM_ENABLE_PROJECTS above.
150+
set(LLVM_DEFAULT_RUNTIMES "libcxx;libcxxabi;libunwind")
148151
set(LLVM_SUPPORTED_RUNTIMES "libc;libunwind;libcxxabi;pstl;libcxx;compiler-rt;openmp;llvm-libgcc")
149152
set(LLVM_ENABLE_RUNTIMES "" CACHE STRING
150153
"Semicolon-separated list of runtimes to build, or \"all\" (${LLVM_DEFAULT_RUNTIMES}). Supported runtimes are ${LLVM_SUPPORTED_RUNTIMES}.")

0 commit comments

Comments
 (0)