From ffe89eec8674b12e2a2e4d5d522a068d27b080fd Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 8 Feb 2022 14:52:09 +0800 Subject: [PATCH] llvm: disable threads --- llvm/default.nix | 1 + 1 file changed, 1 insertion(+) 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"