Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mpickering committed May 22, 2024
1 parent 74629b3 commit dcbcbbc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Cabal/src/Distribution/Simple/GHC.hs
Original file line number Diff line number Diff line change
Expand Up @@ -892,10 +892,9 @@ installLib verbosity lbi targetDir dynlibTargetDir _builtDir pkg lib clbi = do
wantDynamic = withSharedLib lbi
wantProf = withProfLib lbi
wantProfDyn = withProfLibShared lbi
comp = compiler lbi

let computed_wantedWays =
[ProfDynWay | wantProfLibShared lbi ]
[ProfDynWay | wantProfDyn ]
<> [ProfWay | wantProf ]
<> [DynWay | wantDynamic && not (componentIsIndefinite clbi) ]
<> [StaticWay | wantStatic || wantVanilla ]
Expand Down
1 change: 1 addition & 0 deletions Cabal/src/Distribution/Simple/Setup/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ instance Eq ConfigFlags where
&& equal configProfExe
&& equal configProf
&& equal configProfDetail
&& equal configProfShared
&& equal configProfLibDetail
&& equal configConfigureArgs
&& equal configOptimization
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ printPlan
nubFlag x (Setup.Flag x') | x == x' = Setup.NoFlag
nubFlag _ f = f

(tryLibProfiling, tryExeProfiling) =
(tryLibProfiling, tryLibProfilingShared, tryExeProfiling) =
computeEffectiveProfiling fullConfigureFlags

partialConfigureFlags =
Expand All @@ -1072,6 +1072,8 @@ printPlan
nubFlag tryExeProfiling (configProfExe fullConfigureFlags)
, configProfLib =
nubFlag tryLibProfiling (configProfLib fullConfigureFlags)
, configProfShared =
nubFlag tryLibProfilingShared (configProfShared fullConfigureFlags)
}
in -- Not necessary to "escape" it, it's just for user output
unwords . ("" :) $
Expand Down
2 changes: 1 addition & 1 deletion cabal-install/src/Distribution/Client/Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -792,7 +792,7 @@ filterConfigureFlags' flags cabalLibVersion
-- Cabal < 1.23 doesn't know about '--profiling-detail'.
-- Cabal < 1.23 has a hacked up version of 'enable-profiling'
-- which we shouldn't use.
(tryLibProfiling, tryExeProfiling) = computeEffectiveProfiling flags
(tryLibProfiling, _tryLibProfilingShared, tryExeProfiling) = computeEffectiveProfiling flags
flags_1_23_0 =
flags_1_25_0
{ configProfDetail = NoFlag
Expand Down

0 comments on commit dcbcbbc

Please sign in to comment.