diff options
Diffstat (limited to 'hadrian/src/Flavour.hs')
-rw-r--r-- | hadrian/src/Flavour.hs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/hadrian/src/Flavour.hs b/hadrian/src/Flavour.hs index 88ce819147..b13cb2f365 100644 --- a/hadrian/src/Flavour.hs +++ b/hadrian/src/Flavour.hs @@ -113,7 +113,17 @@ addArgs args' fl = fl { args = args fl <> args' } -- in unix and/or hsc2hs to make cross-compiling unix completely free -- from warnings. werror :: Flavour -> Flavour -werror = addArgs (builder Ghc ? notStage0 ? mconcat [arg "-Werror", flag CrossCompiling ? mconcat [arg "-Wwarn=unused-imports", arg "-Wwarn=unused-top-binds"]]) +werror = + addArgs + ( builder Ghc + ? notStage0 + ? mconcat + [ arg "-Werror", + flag CrossCompiling + ? package unix + ? mconcat [arg "-Wwarn=unused-imports", arg "-Wwarn=unused-top-binds"] + ] + ) -- | Build C and Haskell objects with debugging information. enableDebugInfo :: Flavour -> Flavour |