Skip to content

Commit fe9c3c7

Browse files
alfredfothesamesam
authored andcommitted
[libc] _INCLUDE_SCUDO: check for compiler-rt in enabled RUNTIMES too
Previously including SCUDO in a libc build with runtimes/ as root was not possible since this code only checked for compiler-rt enabled via LLVM_ENABLED_PROJECTS. Reviewed By: thesamesam Differential Revision: https://reviews.llvm.org/D156388
1 parent 1462053 commit fe9c3c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ endif()
164164

165165
option(LLVM_LIBC_INCLUDE_SCUDO "Include the SCUDO standalone as the allocator for LLVM libc" OFF)
166166
if(LLVM_LIBC_INCLUDE_SCUDO)
167-
if (NOT "compiler-rt" IN_LIST LLVM_ENABLE_PROJECTS)
168-
message(FATAL_ERROR "SCUDO cannot be included without adding compiler-rt to LLVM_ENABLE_PROJECTS")
167+
if (NOT ("compiler-rt" IN_LIST LLVM_ENABLE_PROJECTS OR "compiler-rt" IN_LIST LLVM_ENABLE_RUNTIMES))
168+
message(FATAL_ERROR "SCUDO cannot be included without adding compiler-rt to LLVM_ENABLE_PROJECTS or LLVM_ENABLE_RUNTIMES")
169169
endif()
170170
endif()
171171

0 commit comments

Comments
 (0)