[libc-commits] [libc] [libc] support fully OOT build (PR #101287)
Schrodinger ZHU Yifan via libc-commits
libc-commits at lists.llvm.org
Wed Jul 31 07:46:00 PDT 2024
================
@@ -327,7 +330,9 @@ endif()
option(LLVM_LIBC_INCLUDE_SCUDO "Include the SCUDO standalone as the allocator for LLVM libc" OFF)
if(LLVM_LIBC_INCLUDE_SCUDO)
- if (NOT ("compiler-rt" IN_LIST LLVM_ENABLE_PROJECTS OR "compiler-rt" IN_LIST LLVM_ENABLE_RUNTIMES))
+ if (LLVM_LIBC_COMPILER_RT_PATH)
+ add_subdirectory(${LLVM_LIBC_COMPILER_RT_PATH} ${CMAKE_CURRENT_BINARY_DIR}/compiler-rt)
+ elseif(NOT ("compiler-rt" IN_LIST LLVM_ENABLE_PROJECTS OR "compiler-rt" IN_LIST LLVM_ENABLE_RUNTIMES))
----------------
SchrodingerZhu wrote:
user can provide compiler-rt source directory on their own.
https://github.com/llvm/llvm-project/pull/101287
More information about the libc-commits
mailing list