From 6a03c05ffe44b3f21e3c6ab0797a997021caef12 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Wed, 5 Jul 2023 20:25:48 +0200 Subject: [PATCH] llvmPackages_16.libcxxabi: also convince CMake C compiler is working For some reason, this is required now. --- pkgs/development/compilers/llvm/16/libcxxabi/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/compilers/llvm/16/libcxxabi/default.nix b/pkgs/development/compilers/llvm/16/libcxxabi/default.nix index b90698c6b9a5d..cbaf69a1897fb 100644 --- a/pkgs/development/compilers/llvm/16/libcxxabi/default.nix +++ b/pkgs/development/compilers/llvm/16/libcxxabi/default.nix @@ -65,6 +65,7 @@ stdenv.mkDerivation rec { # CMake however checks for this anyways; this flag tells it not to. See: # https://github.com/llvm/llvm-project/blob/4bd3f3759259548e159aeba5c76efb9a0864e6fa/llvm/runtimes/CMakeLists.txt#L243 "-DCMAKE_CXX_COMPILER_WORKS=ON" + "-DCMAKE_C_COMPILER_WORKS=ON" ] ++ lib.optionals (stdenv.hostPlatform.useLLVM or false) [ "-DLLVM_ENABLE_LIBCXX=ON" "-DLIBCXXABI_USE_LLVM_UNWINDER=ON"