Skip to content

Commit d31dcdc

Browse files
committed
Add support for -Xshow-phases
1 parent e09bfc8 commit d31dcdc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/sbt-bridge/scala/tools/xsbt/CallbackGlobal.scala

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ sealed class ZincCompiler(settings: Settings, dreporter: DelegatingReporter, out
106106
val analyzer = new Analyzer(global)
107107
def newPhase(prev: Phase) = analyzer.newPhase(prev)
108108
def name = phaseName
109+
def description = "analyze the generated class files and map them to sources"
109110
}
110111

111112
/** Phase that extracts dependency information */
@@ -120,6 +121,7 @@ sealed class ZincCompiler(settings: Settings, dreporter: DelegatingReporter, out
120121
val dependency = new Dependency(global)
121122
def newPhase(prev: Phase) = dependency.newPhase(prev)
122123
def name = phaseName
124+
def description = "extract dependency information"
123125
}
124126

125127
/**
@@ -140,13 +142,17 @@ sealed class ZincCompiler(settings: Settings, dreporter: DelegatingReporter, out
140142
val api = new API(global)
141143
def newPhase(prev: Phase) = api.newPhase(prev)
142144
def name = phaseName
145+
def description = "construct a representation of the public API"
143146
}
144147

145148
override lazy val phaseDescriptors = {
146149
phasesSet += sbtAnalyzer
150+
phasesDescMap(sbtAnalyzer) = sbtAnalyzer.description
147151
if (callback.enabled()) {
148152
phasesSet += sbtDependency
153+
phasesDescMap(sbtDependency) = sbtDependency.description
149154
phasesSet += apiExtractor
155+
phasesDescMap(apiExtractor) = apiExtractor.description
150156
}
151157
this.computePhaseDescriptors
152158
}

0 commit comments

Comments
 (0)