Commit 729bcb02 authored by Sylvain Henry's avatar Sylvain Henry Committed by Marge Bot

Hadrian: fix build on Mac OS Catalina (#17798)

parent 1a3f6f34
Pipeline #21134 canceled with stages
......@@ -153,6 +153,7 @@ findHsDependencies = builder (Ghc FindHsDependencies) ? do
, ghcVersion > [8,9,0] ? arg "-include-cpp-deps"
, commonGhcArgs
, defaultGhcWarningsArgs
, arg "-include-pkg-deps"
, arg "-dep-makefile", arg =<< getOutput
, pure $ concat [ ["-dep-suffix", wayPrefix w] | w <- ways ]
......
......@@ -11,7 +11,9 @@ defaultGhcWarningsArgs :: Args
defaultGhcWarningsArgs = mconcat
[ notStage0 ? arg "-Wnoncanonical-monad-instances"
, notM (flag CcLlvmBackend) ? arg "-optc-Wno-error=inline"
, flag CcLlvmBackend ? arg "-optc-Wno-unknown-pragmas" ]
, flag CcLlvmBackend ? arg "-optc-Wno-unknown-pragmas"
, arg "-optP-Wno-nonportable-include-path" -- #17798
]
-- | Package-specific warnings-related arguments, mostly suppressing various warnings.
ghcWarningsArgs :: Args
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment