Skip to content

Commit 9c01e86

Browse files
TheElectronWillsmarter
authored andcommitted
Add aliases to coverage options
1 parent 570aa50 commit 9c01e86

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/Compiler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class Compiler {
5959

6060
/** Phases dealing with the transformation from pickled trees to backend trees */
6161
protected def transformPhases: List[List[Phase]] =
62-
List(new InstrumentCoverage) :: // Perform instrumentation for code coverage (if -coverage setting is set)
62+
List(new InstrumentCoverage) :: // Perform instrumentation for code coverage (if -coverage-out is set)
6363
List(new FirstTransform, // Some transformations to put trees into a canonical form
6464
new CheckReentrant, // Internal use only: Check that compiled program has no data races involving global vars
6565
new ElimPackagePrefixes, // Eliminate references to package prefixes in Select nodes

compiler/src/dotty/tools/dotc/config/ScalaSettings.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ trait CommonScalaSettings:
117117
val unchecked: Setting[Boolean] = BooleanSetting("-unchecked", "Enable additional warnings where generated code depends on assumptions.", initialValue = true, aliases = List("--unchecked"))
118118
val language: Setting[List[String]] = MultiStringSetting("-language", "feature", "Enable one or more language features.", aliases = List("--language"))
119119
/* Coverage settings */
120-
val coverageOutputDir = PathSetting("-coverage-out", "Destination for coverage classfiles and instrumentation data.", "")
121-
val coverageSourceroot = PathSetting("-coverage-sourceroot", "An alternative root dir of your sources used to relativize.", ".")
120+
val coverageOutputDir = PathSetting("-coverage-out", "Destination for coverage classfiles and instrumentation data.", "", aliases = List("--coverage-out"))
121+
val coverageSourceroot = PathSetting("-coverage-sourceroot", "An alternative root dir of your sources used to relativize.", ".", aliases = List("--coverage-sourceroot"))
122122

123123
/* Other settings */
124124
val encoding: Setting[String] = StringSetting("-encoding", "encoding", "Specify character encoding used by source files.", Properties.sourceEncoding, aliases = List("--encoding"))

0 commit comments

Comments
 (0)