Skip to content

Commit d63ae09

Browse files
committed
Fix rebase conflict for options
1 parent 86ad63f commit d63ae09

File tree

1 file changed

+1
-70
lines changed
  • Cabal/src/Distribution/Simple/Program

1 file changed

+1
-70
lines changed

Cabal/src/Distribution/Simple/Program/GHC.hs

Lines changed: 1 addition & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,6 @@ data GhcOptions = GhcOptions
547547
, ghcOptDylibName :: Flag String
548548
, ghcOptRPaths :: NubListR FilePath
549549
, ---------------
550-
551-
---------------
552550
-- Misc flags
553551

554552
ghcOptVerbosity :: Flag Verbosity
@@ -692,74 +690,6 @@ renderGhcOptions comp _platform@(Platform _arch os) opts
692690
| otherwise -> ["-auto"]
693691
, ["-split-sections" | flagBool ghcOptSplitSections]
694692
, ["-split-objs" | flagBool ghcOptSplitObjs]
695-
, case flagToMaybe (ghcOptHPCDir opts) of
696-
Nothing -> []
697-
Just hpcdir -> ["-fhpc", "-hpcdir", hpcdir]
698-
, if parmakeSupported comp
699-
then case ghcOptNumJobs opts of
700-
NoFlag -> []
701-
Flag n -> ["-j" ++ show n]
702-
else []
703-
, --------------------
704-
-- Creating libraries
705-
706-
["-staticlib" | flagBool ghcOptStaticLib]
707-
, ["-shared" | flagBool ghcOptShared]
708-
, case flagToMaybe (ghcOptDynLinkMode opts) of
709-
Nothing -> []
710-
Just GhcStaticOnly -> ["-static"]
711-
Just GhcDynamicOnly -> ["-dynamic"]
712-
Just GhcStaticAndDynamic -> ["-static", "-dynamic-too"]
713-
, ["-fPIC" | flagBool ghcOptFPic]
714-
, concat [["-dylib-install-name", libname] | libname <- flag ghcOptDylibName]
715-
, ------------------------
716-
-- Redirecting outputs
717-
718-
concat [["-osuf", suf] | suf <- flag ghcOptObjSuffix]
719-
, concat [["-hisuf", suf] | suf <- flag ghcOptHiSuffix]
720-
, concat [["-dynosuf", suf] | suf <- flag ghcOptDynObjSuffix]
721-
, concat [["-dynhisuf", suf] | suf <- flag ghcOptDynHiSuffix]
722-
, concat [["-outputdir", dir] | dir <- flag ghcOptOutputDir]
723-
, concat [["-odir", dir] | dir <- flag ghcOptObjDir]
724-
, concat [["-hidir", dir] | dir <- flag ghcOptHiDir]
725-
, concat [["-hiedir", dir] | dir <- flag ghcOptHieDir]
726-
, concat [["-stubdir", dir] | dir <- flag ghcOptStubDir]
727-
, -----------------------
728-
-- Source search path
729-
730-
["-i" | flagBool ghcOptSourcePathClear]
731-
, ["-i" ++ dir | dir <- flags ghcOptSourcePath]
732-
, --------------------
733-
734-
--------------------
735-
-- CPP, C, and C++ stuff
736-
737-
case flagToMaybe (ghcOptDebugInfo opts) of
738-
Nothing -> []
739-
Just NoDebugInfo -> []
740-
Just MinimalDebugInfo -> ["-g1"]
741-
Just NormalDebugInfo -> ["-g2"]
742-
Just MaximalDebugInfo -> ["-g3"]
743-
, ["-prof" | flagBool ghcOptProfilingMode]
744-
, case flagToMaybe (ghcOptProfilingAuto opts) of
745-
_
746-
| not (flagBool ghcOptProfilingMode) ->
747-
[]
748-
Nothing -> []
749-
Just GhcProfAutoAll
750-
| flagProfAuto implInfo -> ["-fprof-auto"]
751-
| otherwise -> ["-auto-all"] -- not the same, but close
752-
Just GhcProfLate
753-
| flagProfLate implInfo -> ["-fprof-late"]
754-
| otherwise -> ["-fprof-auto-top"] -- not the same, not very close, but what we have.
755-
Just GhcProfAutoToplevel
756-
| flagProfAuto implInfo -> ["-fprof-auto-top"]
757-
| otherwise -> ["-auto-all"]
758-
Just GhcProfAutoExported
759-
| flagProfAuto implInfo -> ["-fprof-auto-exported"]
760-
| otherwise -> ["-auto"]
761-
, ["-split-sections" | flagBool ghcOptSplitSections]
762-
, ["-split-objs" | flagBool ghcOptSplitObjs]
763693
, case flagToMaybe (ghcOptHPCDir opts) of
764694
Nothing -> []
765695
Just hpcdir -> ["-fhpc", "-hpcdir", hpcdir]
@@ -795,6 +725,7 @@ renderGhcOptions comp _platform@(Platform _arch os) opts
795725
, concat [["-outputdir", dir] | dir <- flag ghcOptOutputDir]
796726
, concat [["-odir", dir] | dir <- flag ghcOptObjDir]
797727
, concat [["-hidir", dir] | dir <- flag ghcOptHiDir]
728+
, concat [["-hiedir", dir] | dir <- flag ghcOptHieDir]
798729
, concat [["-stubdir", dir] | dir <- flag ghcOptStubDir]
799730
, -----------------------
800731
-- Source search path

0 commit comments

Comments
 (0)