[Git][ghc/ghc][wip/T23577] hadrian: Only pass -Wno-nonportable-include-path on Darwin
Ben Gamari (@bgamari)
gitlab at gitlab.haskell.org
Fri Jun 30 18:03:41 UTC 2023
Ben Gamari pushed to branch wip/T23577 at Glasgow Haskell Compiler / GHC
Commits:
a9fc4dfd by Ben Gamari at 2023-06-30T13:41:29-04:00
hadrian: Only pass -Wno-nonportable-include-path on Darwin
This flag, which was introduced due to #17798, is specific to the Darwin
toolchain and consequently throws warnings on other platforms.
See #23577.
- - - - -
1 changed file:
- hadrian/src/Settings/Warnings.hs
Changes:
=====================================
hadrian/src/Settings/Warnings.hs
=====================================
@@ -2,6 +2,7 @@ module Settings.Warnings (defaultGhcWarningsArgs, ghcWarningsArgs) where
import Expression
import Oracles.Flag
+import Oracles.Setting (isOsxTarget)
import Packages
-- See @mk/warnings.mk@ for warning-related arguments in the Make build system.
@@ -12,7 +13,7 @@ defaultGhcWarningsArgs = mconcat
[ notStage0 ? arg "-Wnoncanonical-monad-instances"
, notM (flag CcLlvmBackend) ? arg "-optc-Wno-error=inline"
, flag CcLlvmBackend ? arg "-optc-Wno-unknown-pragmas"
- , arg "-optP-Wno-nonportable-include-path" -- #17798
+ , isOsxTarget ? arg "-optP-Wno-nonportable-include-path" -- #17797
]
-- | Package-specific warnings-related arguments, mostly suppressing various warnings.
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a9fc4dfd4a6558cfd1a4dcf8ad9680c8e4c8515c
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/a9fc4dfd4a6558cfd1a4dcf8ad9680c8e4c8515c
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/20230630/8c2f64f9/attachment-0001.html>
More information about the ghc-commits
mailing list