summary refs log tree commit diff
path: root/pkgs/development/compilers
diff options
context:
space:
mode:
authorMatthew Bauer <matthew.bauer@obsidian.systems>2018-08-01 12:50:22 -0400
committerMatthew Bauer <matthew.bauer@obsidian.systems>2018-08-02 16:53:03 -0400
commit1461b90bed9cec45445b89040215357fd98c38cc (patch)
tree974df16b0295afe7ae104e75038213414257180e /pkgs/development/compilers
parente94fcbcd01a7adc532d1081d3232e143efa422fe (diff)
downloadnixlib-1461b90bed9cec45445b89040215357fd98c38cc.tar
nixlib-1461b90bed9cec45445b89040215357fd98c38cc.tar.gz
nixlib-1461b90bed9cec45445b89040215357fd98c38cc.tar.bz2
nixlib-1461b90bed9cec45445b89040215357fd98c38cc.tar.lz
nixlib-1461b90bed9cec45445b89040215357fd98c38cc.tar.xz
nixlib-1461b90bed9cec45445b89040215357fd98c38cc.tar.zst
nixlib-1461b90bed9cec45445b89040215357fd98c38cc.zip
llvm: fix triple setting
llvm is a library so it should just need to know about build & host.
GCC will already have a cross compiler built.

/cc @Ericson2314 @dtzWill
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r--pkgs/development/compilers/llvm/5/llvm.nix7
-rw-r--r--pkgs/development/compilers/llvm/6/llvm.nix7
2 files changed, 6 insertions, 8 deletions
diff --git a/pkgs/development/compilers/llvm/5/llvm.nix b/pkgs/development/compilers/llvm/5/llvm.nix
index 129a6e48b719..3abba0ed340f 100644
--- a/pkgs/development/compilers/llvm/5/llvm.nix
+++ b/pkgs/development/compilers/llvm/5/llvm.nix
@@ -79,8 +79,8 @@ in stdenv.mkDerivation (rec {
     "-DLLVM_ENABLE_RTTI=ON"
 
     "-DLLVM_HOST_TRIPLE=${stdenv.hostPlatform.config}"
-    "-DLLVM_DEFAULT_TARGET_TRIPLE=${stdenv.targetPlatform.config}"
-    "-DTARGET_TRIPLE=${stdenv.targetPlatform.config}"
+    "-DLLVM_DEFAULT_TARGET_TRIPLE=${stdenv.hostPlatform.config}"
+    "-DTARGET_TRIPLE=${stdenv.hostPlatform.config}"
   ]
   ++ stdenv.lib.optional enableSharedLibraries
     "-DLLVM_LINK_LLVM_DYLIB=ON"
@@ -129,8 +129,7 @@ in stdenv.mkDerivation (rec {
     ln -s $lib/lib/libLLVM.dylib $lib/lib/libLLVM-${release_version}.dylib
   '';
 
-  doCheck = stdenv.isLinux && (!stdenv.isi686)
-            && (stdenv.hostPlatform == stdenv.targetPlatform);
+  doCheck = stdenv.isLinux && (!stdenv.isi686);
 
   checkTarget = "check-all";
 
diff --git a/pkgs/development/compilers/llvm/6/llvm.nix b/pkgs/development/compilers/llvm/6/llvm.nix
index f95e19543a15..787a48416ab7 100644
--- a/pkgs/development/compilers/llvm/6/llvm.nix
+++ b/pkgs/development/compilers/llvm/6/llvm.nix
@@ -75,8 +75,8 @@ in stdenv.mkDerivation (rec {
     "-DLLVM_ENABLE_RTTI=ON"
 
     "-DLLVM_HOST_TRIPLE=${stdenv.hostPlatform.config}"
-    "-DLLVM_DEFAULT_TARGET_TRIPLE=${stdenv.targetPlatform.config}"
-    "-DTARGET_TRIPLE=${stdenv.targetPlatform.config}"
+    "-DLLVM_DEFAULT_TARGET_TRIPLE=${stdenv.hostPlatform.config}"
+    "-DTARGET_TRIPLE=${stdenv.hostPlatform.config}"
 
     "-DLLVM_ENABLE_DUMP=ON"
   ]
@@ -130,8 +130,7 @@ in stdenv.mkDerivation (rec {
     ln -s $lib/lib/libLLVM.dylib $lib/lib/libLLVM-${release_version}.dylib
   '';
 
-  doCheck = stdenv.isLinux && (!stdenv.isi686)
-            && (stdenv.hostPlatform == stdenv.targetPlatform);
+  doCheck = stdenv.isLinux && (!stdenv.isi686);
 
   checkTarget = "check-all";