summary refs log tree commit diff
path: root/pkgs/development/compilers/llvm
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-06-23 14:07:49 -0500
committerWill Dietz <w@wdtz.org>2018-06-23 14:07:49 -0500
commit0ac09be2959c7c9c12d799be8d5a19f6132b8464 (patch)
treec76b28907d51b1ccd4f892df085d6ce1a62e1c08 /pkgs/development/compilers/llvm
parent798ad38c35cabd845241d120553b9cdf2c150b41 (diff)
downloadnixpkgs-0ac09be2959c7c9c12d799be8d5a19f6132b8464.tar
nixpkgs-0ac09be2959c7c9c12d799be8d5a19f6132b8464.tar.gz
nixpkgs-0ac09be2959c7c9c12d799be8d5a19f6132b8464.tar.bz2
nixpkgs-0ac09be2959c7c9c12d799be8d5a19f6132b8464.tar.lz
nixpkgs-0ac09be2959c7c9c12d799be8d5a19f6132b8464.tar.xz
nixpkgs-0ac09be2959c7c9c12d799be8d5a19f6132b8464.tar.zst
nixpkgs-0ac09be2959c7c9c12d799be8d5a19f6132b8464.zip
llvm4: unconditionally set triples, not just on musl.
Split off from #42454 as requested.
Diffstat (limited to 'pkgs/development/compilers/llvm')
-rw-r--r--pkgs/development/compilers/llvm/4/llvm.nix9
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgs/development/compilers/llvm/4/llvm.nix b/pkgs/development/compilers/llvm/4/llvm.nix
index a371296db32..eb1b3db4023 100644
--- a/pkgs/development/compilers/llvm/4/llvm.nix
+++ b/pkgs/development/compilers/llvm/4/llvm.nix
@@ -100,6 +100,10 @@ in stdenv.mkDerivation (rec {
     "-DLLVM_ENABLE_FFI=ON"
     "-DLLVM_ENABLE_RTTI=ON"
     "-DCOMPILER_RT_INCLUDE_TESTS=OFF" # FIXME: requires clang source code
+
+    "-DLLVM_HOST_TRIPLE=${stdenv.hostPlatform.config}"
+    "-DLLVM_DEFAULT_TARGET_TRIPLE=${stdenv.targetPlatform.config}"
+    "-DTARGET_TRIPLE=${stdenv.targetPlatform.config}"
   ]
   ++ stdenv.lib.optional enableSharedLibraries
     "-DLLVM_LINK_LLVM_DYLIB=ON"
@@ -115,11 +119,6 @@ in stdenv.mkDerivation (rec {
   ++ stdenv.lib.optionals (isDarwin) [
     "-DLLVM_ENABLE_LIBCXX=ON"
     "-DCAN_TARGET_i386=false"
-  ]
-  ++ stdenv.lib.optionals stdenv.hostPlatform.isMusl [
-    "-DLLVM_HOST_TRIPLE=${stdenv.hostPlatform.config}"
-    "-DLLVM_DEFAULT_TARGET_TRIPLE=${stdenv.targetPlatform.config}"
-    "-DTARGET_TRIPLE=${stdenv.targetPlatform.config}"
   ];
 
   postBuild = ''