summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain Henry <sylvain@haskus.fr>2021-04-30 10:29:08 +0200
committerMarge Bot <ben+marge-bot@smart-cactus.org>2021-04-30 23:22:13 -0400
commit6623790d7486b2b1a1863538dbb2b65234ecaaa6 (patch)
tree549e8b9b80dabfc60d22a124336856896c8df2a6
parent48c2c2af41ac99a21b39b5dfb886f00f94cccad7 (diff)
downloadhaskell-6623790d7486b2b1a1863538dbb2b65234ecaaa6.tar.gz
Hadrian: build check-* with -Wall/-Werror
Otherwise CI fails only with make build system.
-rw-r--r--hadrian/src/Rules/Test.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/hadrian/src/Rules/Test.hs b/hadrian/src/Rules/Test.hs
index ddcb329bd3..c104f4b847 100644
--- a/hadrian/src/Rules/Test.hs
+++ b/hadrian/src/Rules/Test.hs
@@ -85,7 +85,7 @@ testRules = do
dynPrograms <- dynamicGhcPrograms =<< flavour
cmd [bindir </> "ghc" <.> exe] $
concatMap (\p -> ["-package", pkgName p]) depsPkgs ++
- ["-o", top -/- path, top -/- sourcePath] ++
+ ["-Wall", "-Werror", "-o", top -/- path, top -/- sourcePath] ++
(maybe [] (\e -> [e]) mextra) ++
-- If GHC is build with debug options, then build check-ppr
-- also with debug options. This allows, e.g., to print debug