@@ -547,8 +547,6 @@ data GhcOptions = GhcOptions
547
547
, ghcOptDylibName :: Flag String
548
548
, ghcOptRPaths :: NubListR FilePath
549
549
, ---------------
550
-
551
- ---------------
552
550
-- Misc flags
553
551
554
552
ghcOptVerbosity :: Flag Verbosity
@@ -692,74 +690,6 @@ renderGhcOptions comp _platform@(Platform _arch os) opts
692
690
| otherwise -> [" -auto" ]
693
691
, [" -split-sections" | flagBool ghcOptSplitSections]
694
692
, [" -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]
763
693
, case flagToMaybe (ghcOptHPCDir opts) of
764
694
Nothing -> []
765
695
Just hpcdir -> [" -fhpc" , " -hpcdir" , hpcdir]
@@ -795,6 +725,7 @@ renderGhcOptions comp _platform@(Platform _arch os) opts
795
725
, concat [[" -outputdir" , dir] | dir <- flag ghcOptOutputDir]
796
726
, concat [[" -odir" , dir] | dir <- flag ghcOptObjDir]
797
727
, concat [[" -hidir" , dir] | dir <- flag ghcOptHiDir]
728
+ , concat [[" -hiedir" , dir] | dir <- flag ghcOptHieDir]
798
729
, concat [[" -stubdir" , dir] | dir <- flag ghcOptStubDir]
799
730
, -----------------------
800
731
-- Source search path
0 commit comments