[Git][ghc/ghc][master] hadrian: build check-ppr dynamic if GHC is build dynamic

Marge Bot gitlab at gitlab.haskell.org
Mon Jul 13 13:01:17 UTC 2020



 Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC


Commits:
c3ac87ec by Stefan Schulze Frielinghaus at 2020-07-13T09:01:10-04:00
hadrian: build check-ppr dynamic if GHC is build dynamic

Fixes #18361

- - - - -


1 changed file:

- hadrian/src/Rules/Test.hs


Changes:

=====================================
hadrian/src/Rules/Test.hs
=====================================
@@ -75,13 +75,16 @@ testRules = do
 
             bindir <- getBinaryDirectory testGhc
             debugged <- ghcDebugged <$> flavour
+            dynPrograms <- dynamicGhcPrograms =<< flavour
             cmd [bindir </> "ghc" <.> exe] $
                 concatMap (\p -> ["-package", pkgName p]) depsPkgs ++
                 ["-o", top -/- path, top -/- sourcePath] ++
                 -- If GHC is build with debug options, then build check-ppr
                 -- also with debug options.  This allows, e.g., to print debug
                 -- messages of various RTS subsystems while using check-ppr.
-                if debugged then ["-debug"] else []
+                if debugged then ["-debug"] else [] ++
+                -- If GHC is build dynamic, then build check-ppr also dynamic.
+                if dynPrograms then ["-dynamic"] else []
 
     root -/- ghcConfigPath %> \_ -> do
         args <- userSetting defaultTestArgs



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c3ac87ece2716b83ad886e81c20f4161e8ec0efd

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/c3ac87ece2716b83ad886e81c20f4161e8ec0efd
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200713/9e73520c/attachment.html>


More information about the ghc-commits mailing list