Skip to content

Commit 1c3ca40

Browse files
committed
Update dummy-ghc code
1 parent bffc217 commit 1c3ca40

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/call-cabal-project-to-nix.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,8 @@ let
330330
then "OSMinGW32"
331331
else if pkgs.stdenv.targetPlatform.isGhcjs
332332
then "OSGhcjs"
333+
else if pkgs.stdenv.targetPlatform.isWasi
334+
then "OSWasi"
333335
else throw "Unknown target os ${pkgs.stdenv.targetPlatform.config}"
334336
}")'
335337
echo ',("target arch","${
@@ -345,6 +347,8 @@ let
345347
then "ArchAArch32"
346348
else if pkgs.stdenv.targetPlatform.isJavaScript
347349
then "ArchJavaScript"
350+
else if pkgs.stdenv.targetPlatform.isWasm
351+
then "ArchWasm32"
348352
else throw "Unknown target arch ${pkgs.stdenv.targetPlatform.config}"
349353
}")'
350354
echo ',("target platform string","${platformString pkgs.stdenv.targetPlatform}")'

0 commit comments

Comments
 (0)