ghc: provide JavaScript CPP command for ghcjs build

This commit is contained in:
Slava Gorbunov
2025-10-28 11:07:47 +03:00
parent 6a08e6bb4e
commit 1f167aa460
@@ -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.