diff --git a/libc/CMakeLists.txt b/libc/CMakeLists.txt index 4be92ba1380c9e..0a0e0060f2a9e0 100644 --- a/libc/CMakeLists.txt +++ b/libc/CMakeLists.txt @@ -164,8 +164,8 @@ 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) - message(FATAL_ERROR "SCUDO cannot be included without adding compiler-rt to LLVM_ENABLE_PROJECTS") + if (NOT ("compiler-rt" IN_LIST LLVM_ENABLE_PROJECTS OR "compiler-rt" IN_LIST LLVM_ENABLE_RUNTIMES)) + message(FATAL_ERROR "SCUDO cannot be included without adding compiler-rt to LLVM_ENABLE_PROJECTS or LLVM_ENABLE_RUNTIMES") endif() endif()