sgraenitz created this revision. sgraenitz added reviewers: xiaobai, compnerd, JDevlieghere, aprantl, labath. Herald added a subscriber: mgorny. Herald added a project: LLDB.
CMake cache scripts pre-populate the CMakeCache in a build directory with commonly used settings. The CMake invocation from D61952 <https://reviews.llvm.org/D61952> could look like this: cmake -G Ninja -C /path/to/llvm-project/lldb/cmake/caches/Apple-lldb-osx.cmake -DLLVM_ENABLE_PROJECTS="clang;libcxx;libcxxabi;lldb" ../llvm-project/llvm Options specified on the command line will override options in the cache files (as long as caches don't use `FORCE`). What do you think? (This is a first proposal and not set in stone.) Repository: rG LLVM Github Monorepo https://reviews.llvm.org/D61956 Files: lldb/cmake/caches/Apple-lldb-base.cmake lldb/cmake/caches/Apple-lldb-osx.cmake Index: lldb/cmake/caches/Apple-lldb-osx.cmake =================================================================== --- /dev/null +++ lldb/cmake/caches/Apple-lldb-osx.cmake @@ -0,0 +1,12 @@ +include(${CMAKE_CURRENT_LIST_DIR}/Apple-lldb-base.cmake) + +set(CMAKE_OSX_DEPLOYMENT_TARGET 10.11 CACHE STRING "") +set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/install/usr" CACHE STRING "") + +set(LLDB_BUILD_FRAMEWORK ON CACHE BOOL "") +set(LLDB_NO_INSTALL_DEFAULT_RPATH ON CACHE BOOL "") +set(LLDB_FRAMEWORK_INSTALL_DIR "${CMAKE_CURRENT_BINARY_DIR}/install" CACHE STRING "") + +# Release builds may invert these: +set(LLDB_USE_SYSTEM_DEBUGSERVER ON CACHE BOOL "") +set(LLVM_EXTERNALIZE_DEBUGINFO ON CACHE BOOL "") Index: lldb/cmake/caches/Apple-lldb-base.cmake =================================================================== --- /dev/null +++ lldb/cmake/caches/Apple-lldb-base.cmake @@ -0,0 +1,8 @@ +set(LLVM_TARGETS_TO_BUILD X86;ARM;AArch64 CACHE STRING "") +set(LLVM_INSTALL_TOOLCHAIN_ONLY ON CACHE BOOL "") + +# Release builds set these explicitly: +#set(LLDB_VERSION_MAJOR 9999 CACHE STRING "") +#set(LLDB_VERSION_MINOR 9 CACHE STRING "") +#set(LLDB_VERSION_PATCH 9 CACHE STRING "") +#set(LLDB_VERSION_SUFFIX git CACHE STRING "")
Index: lldb/cmake/caches/Apple-lldb-osx.cmake =================================================================== --- /dev/null +++ lldb/cmake/caches/Apple-lldb-osx.cmake @@ -0,0 +1,12 @@ +include(${CMAKE_CURRENT_LIST_DIR}/Apple-lldb-base.cmake) + +set(CMAKE_OSX_DEPLOYMENT_TARGET 10.11 CACHE STRING "") +set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_BINARY_DIR}/install/usr" CACHE STRING "") + +set(LLDB_BUILD_FRAMEWORK ON CACHE BOOL "") +set(LLDB_NO_INSTALL_DEFAULT_RPATH ON CACHE BOOL "") +set(LLDB_FRAMEWORK_INSTALL_DIR "${CMAKE_CURRENT_BINARY_DIR}/install" CACHE STRING "") + +# Release builds may invert these: +set(LLDB_USE_SYSTEM_DEBUGSERVER ON CACHE BOOL "") +set(LLVM_EXTERNALIZE_DEBUGINFO ON CACHE BOOL "") Index: lldb/cmake/caches/Apple-lldb-base.cmake =================================================================== --- /dev/null +++ lldb/cmake/caches/Apple-lldb-base.cmake @@ -0,0 +1,8 @@ +set(LLVM_TARGETS_TO_BUILD X86;ARM;AArch64 CACHE STRING "") +set(LLVM_INSTALL_TOOLCHAIN_ONLY ON CACHE BOOL "") + +# Release builds set these explicitly: +#set(LLDB_VERSION_MAJOR 9999 CACHE STRING "") +#set(LLDB_VERSION_MINOR 9 CACHE STRING "") +#set(LLDB_VERSION_PATCH 9 CACHE STRING "") +#set(LLDB_VERSION_SUFFIX git CACHE STRING "")
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits