diff --git a/llvm/default.nix b/llvm/default.nix index c705fc295..a020c3c42 100644 --- a/llvm/default.nix +++ b/llvm/default.nix @@ -120,6 +120,7 @@ in stdenv.mkDerivation (rec { "-DLLVM_HOST_TRIPLE=${stdenv.hostPlatform.config}" "-DLLVM_DEFAULT_TARGET_TRIPLE=${stdenv.hostPlatform.config}" "-DLLVM_ENABLE_UNWIND_TABLES=OFF" + "-DLLVM_ENABLE_THREADS=OFF" "-DLLVM_TARGETS_TO_BUILD=X86;ARM;RISCV" ] ++ optionals enableSharedLibraries [ "-DLLVM_LINK_LLVM_DYLIB=ON"