Skip to content

Commit c11d9a4

Browse files
committed
Compile stdlib-2_13-bootstrapped with -Yscala2-stdlib
1 parent fa7c102 commit c11d9a4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,7 @@ private sealed trait YSettings:
367367
val YfromTastyIgnoreList: Setting[List[String]] = MultiStringSetting("-Yfrom-tasty-ignore-list", "file", "List of `tasty` files in jar files that will not be loaded when using -from-tasty")
368368
val YnoExperimental: Setting[Boolean] = BooleanSetting("-Yno-experimental", "Disable experimental language features")
369369
val YlegacyLazyVals: Setting[Boolean] = BooleanSetting("-Ylegacy-lazy-vals", "Use legacy (pre 3.3.0) implementation of lazy vals")
370+
val Yscala2Stdlib: Setting[Boolean] = BooleanSetting("-Yscala2-stdlib", "Used when compiling the Scala 2 standard library")
370371

371372
val YprofileEnabled: Setting[Boolean] = BooleanSetting("-Yprofile-enabled", "Enable profiling.")
372373
val YprofileDestination: Setting[String] = StringSetting("-Yprofile-destination", "file", "Where to send profiling output - specify a file, default is to the console.", "")

project/Build.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,7 @@ object Build {
983983
dependsOn(dottyCompiler(Bootstrapped) % "provided; compile->runtime; test->test").
984984
settings(commonStdlibBootstrappedSettings).
985985
settings(
986+
scalacOptions += "-Yscala2-stdlib",
986987
Compile/scalacOptions ++= {
987988
Seq("-sourcepath", ((Compile/sourceManaged).value / "scala-library-src").toString)
988989
},

0 commit comments

Comments
 (0)