Don't print phases twice with -Xlist-phases.

createPhaseConfig already prints out the phases if this flag is present. Remove
it from KonanDriver so it doesn't print twice.
This commit is contained in:
Martin Petrov
2019-04-27 09:17:22 -04:00
committed by alexander-gorshenev
parent a65b782eb9
commit e62bcea97f
@@ -22,10 +22,6 @@ fun runTopLevelPhases(konanConfig: KonanConfig, environment: KotlinCoreEnvironme
context.environment = environment
context.phaseConfig.konanPhasesConfig(konanConfig) // TODO: Wrong place to call it
if (config.get(KonanConfigKeys.LIST_PHASES) ?: false) {
context.phaseConfig.list()
}
if (konanConfig.infoArgsOnly) return
(toplevelPhase as CompilerPhase<Context, Unit, Unit>).invokeToplevel(context.phaseConfig, context, Unit)