forked from M-Labs/nac3
Sebastien Bourdeauducq
4547eee82a
Patch is a bit of a hack and ignores 64-bit CPUs. Also only build the LLVM targets we need.
13 lines
629 B
Diff
13 lines
629 B
Diff
diff --git a/pkgs/development/compilers/llvm/12/llvm/default.nix b/pkgs/development/compilers/llvm/12/llvm/default.nix
|
|
index 41b7211b2a5..dfc707f034d 100644
|
|
--- a/pkgs/development/compilers/llvm/12/llvm/default.nix
|
|
+++ b/pkgs/development/compilers/llvm/12/llvm/default.nix
|
|
@@ -127,6 +127,7 @@ in stdenv.mkDerivation (rec {
|
|
"-DLLVM_HOST_TRIPLE=${stdenv.hostPlatform.config}"
|
|
"-DLLVM_DEFAULT_TARGET_TRIPLE=${stdenv.hostPlatform.config}"
|
|
"-DLLVM_ENABLE_DUMP=ON"
|
|
+ "-DLLVM_TARGETS_TO_BUILD=X86:ARM;RISCV"
|
|
] ++ optionals enableSharedLibraries [
|
|
"-DLLVM_LINK_LLVM_DYLIB=ON"
|
|
] ++ optionals enableManpages [
|