summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc/head.nix
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-07-11 17:37:48 -0500
committerWill Dietz <w@wdtz.org>2018-07-11 21:34:47 -0500
commit2996d29f71a5004ff2a1eaf5094bafb4cfbfa989 (patch)
tree00a85d08a654d2d0dffa361d2988942a20d27475 /pkgs/development/compilers/ghc/head.nix
parentfcfd66cea285e35cf3d2c2f99a5572561e225331 (diff)
downloadnixlib-2996d29f71a5004ff2a1eaf5094bafb4cfbfa989.tar
nixlib-2996d29f71a5004ff2a1eaf5094bafb4cfbfa989.tar.gz
nixlib-2996d29f71a5004ff2a1eaf5094bafb4cfbfa989.tar.bz2
nixlib-2996d29f71a5004ff2a1eaf5094bafb4cfbfa989.tar.lz
nixlib-2996d29f71a5004ff2a1eaf5094bafb4cfbfa989.tar.xz
nixlib-2996d29f71a5004ff2a1eaf5094bafb4cfbfa989.tar.zst
nixlib-2996d29f71a5004ff2a1eaf5094bafb4cfbfa989.zip
ghc: don't use LLVM w/musl on non-cross
Doesn't appear to be needed on musl-native on x86_64,
and on non-x86(-64) it's included anyway.
Diffstat (limited to 'pkgs/development/compilers/ghc/head.nix')
-rw-r--r--pkgs/development/compilers/ghc/head.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/ghc/head.nix b/pkgs/development/compilers/ghc/head.nix
index 43e6473fc241..4c1e5d986dcf 100644
--- a/pkgs/development/compilers/ghc/head.nix
+++ b/pkgs/development/compilers/ghc/head.nix
@@ -7,7 +7,7 @@
 
 , libffi, libiconv ? null, ncurses
 
-, useLLVM ? !targetPlatform.isx86 || targetPlatform.isMusl
+, useLLVM ? !targetPlatform.isx86 || (targetPlatform.isMusl && hostPlatform != targetPlatform)
 , # LLVM is conceptually a run-time-only depedendency, but for
   # non-x86, we need LLVM to bootstrap later stages, so it becomes a
   # build-time dependency too.