summaryrefslogtreecommitdiff
path: root/hadrian
diff options
context:
space:
mode:
authorCheng Shao <terrorjack@type.dance>2023-04-01 19:48:31 +0000
committerMarge Bot <ben+marge-bot@smart-cactus.org>2023-04-27 16:00:35 -0400
commitaa6afe8ab48b5fbe09d332a25ce6af4719c5cb44 (patch)
tree3705175405c4c3a776f0588c5656fa416bb5987d /hadrian
parent791cce64a3ea23fc0ad95fb7e7083a0ff0c35154 (diff)
downloadhaskell-aa6afe8ab48b5fbe09d332a25ce6af4719c5cb44.tar.gz
testsuite: add the req_ghc_with_threaded_rts predicate
This patch adds the req_ghc_with_threaded_rts predicate to the testsuite to assert the platform has threaded RTS, and mark some tests as req_ghc_with_threaded_rts. Also makes ghc_with_threaded_rts a config field instead of a global variable.
Diffstat (limited to 'hadrian')
-rw-r--r--hadrian/src/Settings/Builders/RunTest.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/hadrian/src/Settings/Builders/RunTest.hs b/hadrian/src/Settings/Builders/RunTest.hs
index b3acadbcbd..5e1e16d5aa 100644
--- a/hadrian/src/Settings/Builders/RunTest.hs
+++ b/hadrian/src/Settings/Builders/RunTest.hs
@@ -275,7 +275,7 @@ runTestBuilderArgs = builder Testsuite ? do
, arg "-e", arg $ "ghc_compiler_always_flags=" ++ quote ghcFlags
, arg "-e", arg $ asBool "ghc_with_dynamic_rts=" (hasDynamicRts)
- , arg "-e", arg $ asBool "ghc_with_threaded_rts=" (hasThreadedRts)
+ , arg "-e", arg $ asBool "config.ghc_with_threaded_rts=" (hasThreadedRts)
, arg "-e", arg $ asBool "config.have_fast_bignum=" (bignumBackend /= "native" && not bignumCheck)
, arg "-e", arg $ asBool "target_with_smp=" targetWithSMP
, arg "-e", arg $ "config.ghc_dynamic=" ++ show hasDynamic