diff options
author | Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io> | 2020-09-24 23:32:03 +0200 |
---|---|---|
committer | Krzysztof Gogolewski <krzysztof.gogolewski@tweag.io> | 2020-10-16 01:20:55 +0200 |
commit | 8cb4fe2459ab11b9efcc926410cdb356b29d6b22 (patch) | |
tree | 6f569dcf548ce645a01d641e68b96f39b18c0bd5 /compiler/main/DynFlags.hs | |
parent | 5b5dde18b2cfb1a8128d2fe89f4513feac2e4ebf (diff) | |
download | haskell-8cb4fe2459ab11b9efcc926410cdb356b29d6b22.tar.gz |
Add a flag to indicate that gcc supports -no-pie
Fixes #17919.
(cherry picked from commit 587c3c514f05f97082952d613695f1186ff3174e)
Diffstat (limited to 'compiler/main/DynFlags.hs')
-rw-r--r-- | compiler/main/DynFlags.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs index 69b4038046..54056074b7 100644 --- a/compiler/main/DynFlags.hs +++ b/compiler/main/DynFlags.hs @@ -3079,6 +3079,8 @@ dynamic_flags_deps = [ -- (see #15319) toolSettings_ccSupportsNoPie = False } + , make_ord_flag defFlag "pgmc-supports-no-pie" + $ noArg $ alterToolSettings $ \s -> s { toolSettings_ccSupportsNoPie = True } , make_ord_flag defFlag "pgms" (HasArg (\_ -> addWarn "Object splitting was removed in GHC 8.8")) , make_ord_flag defFlag "pgma" |