summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2020-05-09 14:45:01 -0400
committerBen Gamari <ben@smart-cactus.org>2020-05-09 14:45:44 -0400
commit2e5668a06cb75e0548c16dc3259a33a6d86e9098 (patch)
tree280bf20e8b46bcc4f3ecc6deecc8f9c9a07cb3dc
parent86c77b36628dcce7bc9b066fc24c8c521fecc3ee (diff)
downloadhaskell-wip/T18167.tar.gz
hadrian: Tell testsuite driver about LLVM availabilitywip/T18167
This reflects the logic present in the Make build system into Hadrian. Fixes #18167.
-rw-r--r--hadrian/src/Settings/Builders/RunTest.hs3
1 files changed, 2 insertions, 1 deletions
diff --git a/hadrian/src/Settings/Builders/RunTest.hs b/hadrian/src/Settings/Builders/RunTest.hs
index 01aee6827d..293465b52b 100644
--- a/hadrian/src/Settings/Builders/RunTest.hs
+++ b/hadrian/src/Settings/Builders/RunTest.hs
@@ -70,6 +70,7 @@ runTestBuilderArgs = builder RunTest ? do
withSMP <- getBooleanSetting TestGhcWithSMP
debugged <- getBooleanSetting TestGhcDebugged
keepFiles <- expr (testKeepFiles <$> userSetting defaultTestArgs)
+ withLlvm <- expr (not . null <$> settingsFileSetting SettingsFileSetting_LlcCommand)
accept <- expr (testAccept <$> userSetting defaultTestArgs)
(acceptPlatform, acceptOS) <- expr . liftIO $
@@ -121,7 +122,7 @@ runTestBuilderArgs = builder RunTest ? do
, arg "-e", arg $ asBool "config.have_dynamic=" (hasLibWay dynamic)
, arg "-e", arg $ asBool "config.have_profiling=" (hasLibWay profiling)
, arg "-e", arg $ asBool "ghc_with_smp=" withSMP
- , arg "-e", arg $ "ghc_with_llvm=0" -- TODO: support LLVM
+ , arg "-e", arg $ asBool "ghc_with_llvm=" withLlvm
, arg "-e", arg $ "config.ghc_dynamic_by_default=" ++ show hasDynamicByDefault
, arg "-e", arg $ "config.ghc_dynamic=" ++ show hasDynamic