mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-29 19:30:11 +00:00
haskell.compiler.ghc{96,98,910}: use emscripten installCC for ghcjs
An oversight in 884a76c5e6: We need to
mirror the isGhcjs condition of targetCC (toolsForTarget) for installCC
as well. (Note that in practice, targetCC == installCC for ghcjs since
it is cross-only (?).)
This commit is contained in:
@@ -285,7 +285,10 @@ let
|
||||
|
||||
buildCC = buildPackages.stdenv.cc;
|
||||
targetCC = builtins.head toolsForTarget;
|
||||
installCC = pkgsHostTarget.targetPackages.stdenv.cc;
|
||||
installCC =
|
||||
if targetPlatform.isGhcjs
|
||||
then pkgsHostTarget.emscripten
|
||||
else pkgsHostTarget.targetPackages.stdenv.cc;
|
||||
|
||||
# toolPath calculates the absolute path to the name tool associated with a
|
||||
# given `stdenv.cc` derivation, i.e. it picks the correct derivation to take
|
||||
|
||||
Reference in New Issue
Block a user