hadrian: Pass integer_backend to testsuite driver
authorBen Gamari <ben@smart-cactus.org>
Fri, 14 Dec 2018 20:11:54 +0000 (15:11 -0500)
committerBen Gamari <ben@smart-cactus.org>
Sat, 15 Dec 2018 00:49:28 +0000 (19:49 -0500)
hadrian/src/Settings/Builders/RunTest.hs

index 6188b64..8312592 100644 (file)
@@ -81,6 +81,7 @@ runTestBuilderArgs = builder RunTest ? do
     top         <- expr $ topDirectory
     ghcFlags    <- expr runTestGhcFlags
     timeoutProg <- expr buildRoot <&> (-/- timeoutPath)
+    integerLib  <- expr (integerLibrary flav)
 
     let asZeroOne s b = s ++ zeroOne b
 
@@ -110,6 +111,7 @@ runTestBuilderArgs = builder RunTest ? do
 
             , arg "-e", arg $ "config.ghc_dynamic_by_default=" ++ show hasDynamicByDefault
             , arg "-e", arg $ "config.ghc_dynamic=" ++ show hasDynamic
+            , arg "-e", arg $ "config.integer_backend=" ++ show (pkgName integerLib)
 
             -- Use default value, see:
             -- https://github.com/ghc/ghc/blob/master/testsuite/mk/boilerplate.mk