diff options
author | Cheng Shao <astrohavoc@gmail.com> | 2022-10-21 13:43:40 +0000 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2022-11-11 00:26:55 -0500 |
commit | df7bfef8f72bb32663d3828bf096587525f09335 (patch) | |
tree | 93eb162e317d936659d33af1bcc0db3131a5eb56 /libraries | |
parent | 3633a5f5b001c3519b78c956cff4657f5ddde445 (diff) | |
download | haskell-df7bfef8f72bb32663d3828bf096587525f09335.tar.gz |
Add support for the wasm32-wasi target tuple
This patch adds the wasm32-wasi tuple support to various places in the
tree: autoconf, hadrian, ghc-boot and also the compiler. The codegen
logic will come in subsequent commits.
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/ghc-boot/GHC/Platform/ArchOS.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libraries/ghc-boot/GHC/Platform/ArchOS.hs b/libraries/ghc-boot/GHC/Platform/ArchOS.hs index c46371fac0..fa8042671a 100644 --- a/libraries/ghc-boot/GHC/Platform/ArchOS.hs +++ b/libraries/ghc-boot/GHC/Platform/ArchOS.hs @@ -45,6 +45,7 @@ data Arch | ArchMipsel | ArchRISCV64 | ArchJavaScript + | ArchWasm32 deriving (Read, Show, Eq, Ord) -- | ARM Instruction Set Architecture @@ -95,6 +96,7 @@ data OS | OSQNXNTO | OSAIX | OSHurd + | OSWasi deriving (Read, Show, Eq, Ord) @@ -133,6 +135,7 @@ stringEncodeArch = \case ArchMipsel -> "mipsel" ArchRISCV64 -> "riscv64" ArchJavaScript -> "js" + ArchWasm32 -> "wasm32" -- | See Note [Platform Syntax]. stringEncodeOS :: OS -> String @@ -151,3 +154,4 @@ stringEncodeOS = \case OSQNXNTO -> "nto-qnx" OSAIX -> "aix" OSHurd -> "hurd" + OSWasi -> "wasi" |