[libc-commits] [libc] [libc][cmake] error if user disables sanitizers but wants scudo (PR #123834)

Petr Hosek via libc-commits libc-commits at lists.llvm.org
Tue Jan 21 15:51:38 PST 2025


================
@@ -323,6 +323,9 @@ if(LLVM_LIBC_INCLUDE_SCUDO)
   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()
+  if (DEFINED COMPILER_RT_BUILD_SANITIZERS AND NOT COMPILER_RT_BUILD_SANITIZERS)
----------------
petrhosek wrote:

```suggestion
  if (NOT COMPILER_RT_BUILD_SANITIZERS)
```

https://github.com/llvm/llvm-project/pull/123834


More information about the libc-commits mailing list