Add support for cross compiling to js-ghcjs

This platform doesn't have a C compiler, and so relies and the changes
in the previous commit to work.
This commit is contained in:
John Ericson
2019-11-25 00:12:38 +00:00
parent 63bd851e95
commit c739c420db
3 changed files with 15 additions and 4 deletions
+6 -3
View File
@@ -121,9 +121,12 @@ stageFuns: let
postStage = buildPackages: {
__raw = true;
stdenv.cc =
if buildPackages.stdenv.cc.isClang or false
then buildPackages.clang
else buildPackages.gcc;
if buildPackages.stdenv.hasCC
then
if buildPackages.stdenv.cc.isClang or false
then buildPackages.clang
else buildPackages.gcc
else buildPackages.stdenv.cc;
};
in dfold folder postStage (_: {}) withAllowCustomOverrides