summaryrefslogtreecommitdiff
path: root/hadrian/src
diff options
context:
space:
mode:
authorCheng Shao <astrohavoc@gmail.com>2022-10-21 13:43:40 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2022-11-11 00:26:55 -0500
commitdf7bfef8f72bb32663d3828bf096587525f09335 (patch)
tree93eb162e317d936659d33af1bcc0db3131a5eb56 /hadrian/src
parent3633a5f5b001c3519b78c956cff4657f5ddde445 (diff)
downloadhaskell-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 'hadrian/src')
-rw-r--r--hadrian/src/Oracles/Flag.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/hadrian/src/Oracles/Flag.hs b/hadrian/src/Oracles/Flag.hs
index a17b788c33..37f675b5e8 100644
--- a/hadrian/src/Oracles/Flag.hs
+++ b/hadrian/src/Oracles/Flag.hs
@@ -80,10 +80,11 @@ arSupportsDashL _ = flag ArSupportsDashL
platformSupportsSharedLibs :: Action Bool
platformSupportsSharedLibs = do
windows <- isWinTarget
+ wasm <- anyTargetArch [ "wasm32" ]
ppc_linux <- anyTargetPlatform [ "powerpc-unknown-linux" ]
solaris <- anyTargetPlatform [ "i386-unknown-solaris2" ]
solarisBroken <- flag SolarisBrokenShld
- return $ not (windows || ppc_linux || solaris && solarisBroken)
+ return $ not (windows || wasm || ppc_linux || solaris && solarisBroken)
-- | Does the target support threaded RTS?
targetSupportsThreadedRts :: Action Bool