File tree 1 file changed +4
-9
lines changed
compiler/src/dotty/tools/dotc/transform
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -20,26 +20,21 @@ import dotty.tools.backend.jvm.GenBCode
20
20
21
21
/**
22
22
* Small phase to be run to collect main classes and store them in the context.
23
- * The general rule to run this phase is either :
24
- * - The output of compilation is JarArchive and there is no `-Xmain-class` defined
25
- * - The compiler is run from sbt and is forced by flags forcing `ExtractorAPI`
23
+ * The general rule to run this phase is:
24
+ * - The output of compilation is JarArchive
25
+ * - There is no `-Xmain-class` defined
26
26
*
27
27
* The following flags affect this phase:
28
28
* -d path.jar
29
29
* -Xmain-class
30
- * -Yforce-sbt-phases
31
- * -Ydump-sbt-inc
32
30
*/
33
31
class CollectEntryPoints extends MiniPhase :
34
32
def phaseName : String = " Collect entry points"
35
33
36
34
override def isRunnable (using Context ): Boolean =
37
- def forceRun = (ctx.settings.XmainClass .isDefault && ctx.settings.outputDir.value.isInstanceOf [JarArchive ]) ||
38
- ctx.settings.YdumpSbtInc .value ||
39
- ctx.settings.YforceSbtPhases .value
35
+ def forceRun = ctx.settings.XmainClass .isDefault && ctx.settings.outputDir.value.isInstanceOf [JarArchive ]
40
36
super .isRunnable && (ctx.sbtCallback != null || forceRun)
41
37
42
-
43
38
override def transformTypeDef (tree : tpd.TypeDef )(using Context ): tpd.Tree =
44
39
getEntryPoint(tree).map(registerEntryPoint)
45
40
tree
You can’t perform that action at this time.
0 commit comments