about 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 11:34:18 -0500
committerWill Dietz <w@wdtz.org>2018-06-23 15:53:43 -0500
commitb39fb5525b4595d5ef647c817f72ee975807fe06 (patch)
treea753dbf6651588952c76f0d118acd18b71ecc184 /pkgs/development/compilers/llvm
parentf0c154a1097b9e25cde8561454d3e60c35f46d86 (diff)
downloadnixlib-b39fb5525b4595d5ef647c817f72ee975807fe06.tar
nixlib-b39fb5525b4595d5ef647c817f72ee975807fe06.tar.gz
nixlib-b39fb5525b4595d5ef647c817f72ee975807fe06.tar.bz2
nixlib-b39fb5525b4595d5ef647c817f72ee975807fe06.tar.lz
nixlib-b39fb5525b4595d5ef647c817f72ee975807fe06.tar.xz
nixlib-b39fb5525b4595d5ef647c817f72ee975807fe06.tar.zst
nixlib-b39fb5525b4595d5ef647c817f72ee975807fe06.zip
llvm_39: set triples as well
Diffstat (limited to 'pkgs/development/compilers/llvm')
-rw-r--r--pkgs/development/compilers/llvm/3.9/llvm.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/development/compilers/llvm/3.9/llvm.nix b/pkgs/development/compilers/llvm/3.9/llvm.nix
index 31677b0ef400..94a8d379fb2c 100644
--- a/pkgs/development/compilers/llvm/3.9/llvm.nix
+++ b/pkgs/development/compilers/llvm/3.9/llvm.nix
@@ -134,6 +134,10 @@ in stdenv.mkDerivation rec {
   ] ++ stdenv.lib.optionals (buildPlatform != hostPlatform) [
     "-DCMAKE_CROSSCOMPILING=True"
     "-DLLVM_TABLEGEN=${buildPackages.llvmPackages_39.llvm}/bin/llvm-tblgen"
+  ] ++ 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 = ''