ghc: provide JavaScript CPP command for ghcjs build
This commit is contained in:
@@ -859,6 +859,12 @@ stdenv.mkDerivation (
|
||||
ghc-settings-edit "$settingsFile" \
|
||||
"windres command" "${toolPath "windres" installCC}"
|
||||
''
|
||||
+ lib.optionalString stdenv.targetPlatform.isGhcjs ''
|
||||
ghc-settings-edit "$settingsFile" \
|
||||
"JavaScript CPP command" "${toolPath "cc" installCC}"
|
||||
ghc-settings-edit "$settingsFile" \
|
||||
"JavaScript CPP flags" "-E"
|
||||
''
|
||||
+ ''
|
||||
|
||||
# Install the bash completion file.
|
||||
|
||||
Reference in New Issue
Block a user