diff options
author | Will Dietz <w@wdtz.org> | 2018-06-23 14:07:49 -0500 |
---|---|---|
committer | Will Dietz <w@wdtz.org> | 2018-06-23 14:07:49 -0500 |
commit | 0ac09be2959c7c9c12d799be8d5a19f6132b8464 (patch) | |
tree | c76b28907d51b1ccd4f892df085d6ce1a62e1c08 | |
parent | 798ad38c35cabd845241d120553b9cdf2c150b41 (diff) | |
download | nixlib-0ac09be2959c7c9c12d799be8d5a19f6132b8464.tar nixlib-0ac09be2959c7c9c12d799be8d5a19f6132b8464.tar.gz nixlib-0ac09be2959c7c9c12d799be8d5a19f6132b8464.tar.bz2 nixlib-0ac09be2959c7c9c12d799be8d5a19f6132b8464.tar.lz nixlib-0ac09be2959c7c9c12d799be8d5a19f6132b8464.tar.xz nixlib-0ac09be2959c7c9c12d799be8d5a19f6132b8464.tar.zst nixlib-0ac09be2959c7c9c12d799be8d5a19f6132b8464.zip |
llvm4: unconditionally set triples, not just on musl.
Split off from #42454 as requested.
-rw-r--r-- | pkgs/development/compilers/llvm/4/llvm.nix | 9 |
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 a371296db326..eb1b3db4023c 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 = '' |