Unverified Commit e580b3c6 authored by Tristan Ross's avatar Tristan Ross Committed by GitHub
Browse files

llvmPackages_20.libc: fix by removing scudo (#409966)

parents 63ff8031 974c3874
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -79,12 +79,8 @@ stdenv.mkDerivation (finalAttrs: {
      (lib.cmakeFeature "LLVM_ENABLE_RUNTIMES" "libc;compiler-rt")
      # Tests requires the host to have a libc.
      (lib.cmakeBool "LLVM_INCLUDE_TESTS" (stdenv.cc.libc != null))
      (lib.cmakeBool "LLVM_LIBC_INCLUDE_SCUDO" true)
      (lib.cmakeBool "COMPILER_RT_BUILD_SCUDO_STANDALONE_WITH_LLVM_LIBC" true)
      (lib.cmakeBool "COMPILER_RT_BUILD_GWP_ASAN" false)
      (lib.cmakeBool "COMPILER_RT_SCUDO_STANDALONE_BUILD_SHARED" false)
    ]
    ++ lib.optional (isFullBuild && stdenv.cc.libc == null) [
    ++ lib.optionals (isFullBuild && stdenv.cc.libc == null) [
      # CMake runs a check to see if the compiler works.
      # This includes including headers which requires a libc.
      # Skip these checks because a libc cannot be used when one doesn't exist.