about summary refs log tree commit diff
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2023-11-19 18:50:45 +0100
committersternenseemann <sternenseemann@systemli.org>2023-12-04 19:43:07 +0100
commitbd151aad5bceba29d3c78f4df848ef9fabe55939 (patch)
tree1550265fc66aa89176ed5bf836fbc0f20fd31932
parentea7faf9d9e2add046b819aab954932121a508633 (diff)
downloadnixlib-bd151aad5bceba29d3c78f4df848ef9fabe55939.tar
nixlib-bd151aad5bceba29d3c78f4df848ef9fabe55939.tar.gz
nixlib-bd151aad5bceba29d3c78f4df848ef9fabe55939.tar.bz2
nixlib-bd151aad5bceba29d3c78f4df848ef9fabe55939.tar.lz
nixlib-bd151aad5bceba29d3c78f4df848ef9fabe55939.tar.xz
nixlib-bd151aad5bceba29d3c78f4df848ef9fabe55939.tar.zst
nixlib-bd151aad5bceba29d3c78f4df848ef9fabe55939.zip
haskell.compiler.ghc865Binary: correct useLLVM condition
GHC has a native backend for POWER and SPARC. This is relevant to 8.6.5
binary in the case of POWER where we actually have a bindist and don't
need to include LLVM.
-rw-r--r--pkgs/development/compilers/ghc/8.6.5-binary.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/compilers/ghc/8.6.5-binary.nix b/pkgs/development/compilers/ghc/8.6.5-binary.nix
index dcf2cee92f74..7de4bd035448 100644
--- a/pkgs/development/compilers/ghc/8.6.5-binary.nix
+++ b/pkgs/development/compilers/ghc/8.6.5-binary.nix
@@ -10,7 +10,9 @@
 assert stdenv.targetPlatform == stdenv.hostPlatform;
 
 let
-  useLLVM = !stdenv.targetPlatform.isx86;
+  useLLVM = !(stdenv.targetPlatform.isx86
+              || stdenv.targetPlatform.isPower
+              || stdenv.targetPlatform.isSparc);
 
   useNcurses6 = stdenv.hostPlatform.system == "x86_64-linux"
                 || (with stdenv.hostPlatform; isPower64 && isLittleEndian);