summaryrefslogtreecommitdiff
path: root/hadrian/src/Oracles/Flag.hs
diff options
context:
space:
mode:
Diffstat (limited to 'hadrian/src/Oracles/Flag.hs')
-rw-r--r--hadrian/src/Oracles/Flag.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/hadrian/src/Oracles/Flag.hs b/hadrian/src/Oracles/Flag.hs
index a929b77e68..41fc723b44 100644
--- a/hadrian/src/Oracles/Flag.hs
+++ b/hadrian/src/Oracles/Flag.hs
@@ -95,14 +95,15 @@ platformSupportsSharedLibs = do
wasm <- anyTargetArch [ "wasm32" ]
ppc_linux <- anyTargetPlatform [ "powerpc-unknown-linux" ]
solaris <- anyTargetPlatform [ "i386-unknown-solaris2" ]
+ javascript <- anyTargetArch [ "js" ]
solarisBroken <- flag SolarisBrokenShld
- return $ not (windows || wasm || ppc_linux || solaris && solarisBroken)
+ return $ not (windows || wasm || javascript || ppc_linux || solaris && solarisBroken)
-- | Does the target support threaded RTS?
targetSupportsThreadedRts :: Action Bool
targetSupportsThreadedRts = do
- wasm <- anyTargetArch [ "wasm32" ]
- return $ not wasm
+ bad_arch <- anyTargetArch [ "wasm32", "js" ]
+ return $ not bad_arch
-- | Does the target support the -N RTS flag?
targetSupportsSMP :: Action Bool