summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Gamari <ben@smart-cactus.org>2019-10-01 18:27:16 -0400
committerBen Gamari <ben@smart-cactus.org>2019-10-01 18:27:16 -0400
commit3d8c37f980954256a049ec6043cd40d1cd326359 (patch)
treed14333097abb7bfc639907650a2a99a9e19d699d
parent822481d5658280fa76f648c3d56dc6a456b8d3a3 (diff)
downloadhaskell-wip/T17283.tar.gz
DynFlags: Only warn when split-sections is ignoredwip/T17283
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)))