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.
This commit is contained in:
sternenseemann 2023-11-19 18:50:45 +01:00
parent ea7faf9d9e
commit bd151aad5b

View File

@ -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);