File tree 1 file changed +4
-2
lines changed
cabal-install/src/Distribution/Client 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -862,8 +862,10 @@ printPlan verbosity
862
862
ProjectBaseContext {
863
863
buildSettings = BuildTimeSettings {buildSettingDryRun},
864
864
projectConfig = ProjectConfig {
865
+ projectConfigAllPackages =
866
+ PackageConfig {packageConfigOptimization = globalOpt},
865
867
projectConfigLocalPackages =
866
- PackageConfig {packageConfigOptimization}
868
+ PackageConfig {packageConfigOptimization = localOpt }
867
869
}
868
870
}
869
871
ProjectBuildContext {
@@ -997,7 +999,7 @@ printPlan verbosity
997
999
showBuildProfile :: String
998
1000
showBuildProfile = " Build profile: " ++ unwords [
999
1001
" -w " ++ (showCompilerId . pkgConfigCompiler) elaboratedShared,
1000
- " -O" ++ (case packageConfigOptimization of
1002
+ " -O" ++ (case globalOpt <> localOpt of -- if local is not set, read global
1001
1003
Setup. Flag NoOptimisation -> " 0"
1002
1004
Setup. Flag NormalOptimisation -> " 1"
1003
1005
Setup. Flag MaximumOptimisation -> " 2"
You can’t perform that action at this time.
0 commit comments