Skip to content

Commit 73443ef

Browse files
authored
comp-builder: fix for ghcjs (#487)
1 parent 98ac006 commit 73443ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builder/comp-builder.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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
] ++

0 commit comments

Comments
 (0)