on iko/ghcjs-patch-master help sign in
comp-builder: fix for ghcjs (#487)
commit73443ef1a8af3928f0693331c8d205fe5d17eb13 authorYorick <yorick@yorickvanpelt.nl> dateFri 13 Mar 2020, 00:44 (7 years ago) parent98ac006
1 file changed+1−1
builder/comp-builder.nix+1−1
builder/comp-builder.nix+1−1
@@ -70,7 +70,7 @@ let
7070 "--with-ghc=${ghc.targetPrefix}ghc"
7171 "--with-ghc-pkg=${ghc.targetPrefix}ghc-pkg"
7272 "--with-hsc2hs=${ghc.targetPrefix}hsc2hs"
73− ] ++ lib.optionals (stdenv.cc != null)
73+ ] ++ lib.optionals (stdenv.hasCC or (stdenv.cc != null))
7474 ( # CC
7575 [ "--with-gcc=${stdenv.cc.targetPrefix}cc"
7676 ] ++