summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-10-01 18:27:16 -0400
committerMarge Bot <ben+marge-bot@smart-cactus.org>2019-10-03 12:17:32 -0400
commite4c9389678f676aa664fa39cdaf8af865cc24855 (patch)
tree83b1ba5ad37d2e53704fe7bc23847cde8a62e5a2
parent259f4dffaf6698ab6923487e6aa0394d387ae8c6 (diff)
downloadhaskell-e4c9389678f676aa664fa39cdaf8af865cc24855.tar.gz
DynFlags: Only warn when split-sections is ignored
Previously we would throw an error which seems a bit harsh. As reported in #17283.
-rw-r--r--compiler/main/DynFlags.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/main/DynFlags.hs b/compiler/main/DynFlags.hs
index f809bc330f..d873df6333 100644
--- a/compiler/main/DynFlags.hs
+++ b/compiler/main/DynFlags.hs
@@ -3108,9 +3108,9 @@ dynamic_flags_deps = [
, make_ord_flag defGhcFlag "split-sections"
(noArgM (\dflags -> do
if platformHasSubsectionsViaSymbols (targetPlatform dflags)
- then do addErr $
+ then do addWarn $
"-split-sections is not useful on this platform " ++
- "since it always uses subsections via symbols."
+ "since it always uses subsections via symbols. Ignoring."
return dflags
else return (gopt_set dflags Opt_SplitSections)))