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:
committed by
alexander-gorshenev
parent
a65b782eb9
commit
e62bcea97f
-4
@@ -22,10 +22,6 @@ fun runTopLevelPhases(konanConfig: KonanConfig, environment: KotlinCoreEnvironme
|
|||||||
context.environment = environment
|
context.environment = environment
|
||||||
context.phaseConfig.konanPhasesConfig(konanConfig) // TODO: Wrong place to call it
|
context.phaseConfig.konanPhasesConfig(konanConfig) // TODO: Wrong place to call it
|
||||||
|
|
||||||
if (config.get(KonanConfigKeys.LIST_PHASES) ?: false) {
|
|
||||||
context.phaseConfig.list()
|
|
||||||
}
|
|
||||||
|
|
||||||
if (konanConfig.infoArgsOnly) return
|
if (konanConfig.infoArgsOnly) return
|
||||||
|
|
||||||
(toplevelPhase as CompilerPhase<Context, Unit, Unit>).invokeToplevel(context.phaseConfig, context, Unit)
|
(toplevelPhase as CompilerPhase<Context, Unit, Unit>).invokeToplevel(context.phaseConfig, context, Unit)
|
||||||
|
|||||||
Reference in New Issue
Block a user