From f6398b57bc14420df0ddca28adec88e8024ba25a Mon Sep 17 00:00:00 2001 From: Ben Gamari Date: Mon, 26 Feb 2018 12:07:56 -0500 Subject: [PATCH] Fix split-sections flag The patch which introduced support for split-sections, 450d6bc, contained a cut-and-paste error such that it was controlled by the split-objs flag. Fix this. Fixes #5011. --- Cabal/Distribution/Simple/Program/GHC.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cabal/Distribution/Simple/Program/GHC.hs b/Cabal/Distribution/Simple/Program/GHC.hs index c957f614ed4..165423f5ade 100644 --- a/Cabal/Distribution/Simple/Program/GHC.hs +++ b/Cabal/Distribution/Simple/Program/GHC.hs @@ -354,7 +354,7 @@ renderGhcOptions comp _platform@(Platform _arch os) opts | flagProfAuto implInfo -> ["-fprof-auto-exported"] | otherwise -> ["-auto"] - , [ "-split-sections" | flagBool ghcOptSplitObjs ] + , [ "-split-sections" | flagBool ghcOptSplitSections ] , [ "-split-objs" | flagBool ghcOptSplitObjs ] , case flagToMaybe (ghcOptHPCDir opts) of