[NFC] Colocate cache values for controling libc++ headers build in stage 2

This commit is contained in:
Louis Dionne 2022-08-24 08:50:46 -04:00
parent 367a1fa889
commit 3e84cdbee4
1 changed files with 7 additions and 7 deletions

View File

@ -36,10 +36,6 @@ if(LLVM_ENABLE_LTO AND NOT LLVM_ENABLE_LTO STREQUAL "THIN")
endif() endif()
set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "") set(CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING "")
set(LIBCXX_INSTALL_LIBRARY OFF CACHE BOOL "")
set(LIBCXX_INSTALL_HEADERS ON CACHE BOOL "")
set(LIBCXX_INCLUDE_TESTS OFF CACHE BOOL "")
set(LIBCXX_USE_COMPILER_RT ON CACHE BOOL "")
set(LLVM_LTO_VERSION_OFFSET 3000 CACHE STRING "") set(LLVM_LTO_VERSION_OFFSET 3000 CACHE STRING "")
# Generating Xcode toolchains is useful for developers wanting to build and use # Generating Xcode toolchains is useful for developers wanting to build and use
@ -79,9 +75,13 @@ set(LLVM_DISTRIBUTION_COMPONENTS
${LLVM_TOOLCHAIN_UTILITIES} ${LLVM_TOOLCHAIN_UTILITIES}
CACHE STRING "") CACHE STRING "")
set(LLVM_RUNTIME_DISTRIBUTION_COMPONENTS # Build the libc++ headers
cxx-headers # Note that LLVM_ENABLE_RUNTIMES must be passed on the command-line.
CACHE STRING "") set(LLVM_RUNTIME_DISTRIBUTION_COMPONENTS cxx-headers CACHE STRING "")
set(LIBCXX_INSTALL_LIBRARY OFF CACHE BOOL "")
set(LIBCXX_INSTALL_HEADERS ON CACHE BOOL "")
set(LIBCXX_INCLUDE_TESTS OFF CACHE BOOL "")
set(LIBCXX_USE_COMPILER_RT ON CACHE BOOL "")
# test args # test args