@@ -54,11 +54,15 @@ object MyScalaJSPlugin extends AutoPlugin {
54
54
55
55
// Typecheck the Scala.js IR found on the classpath
56
56
scalaJSLinkerConfig ~= (_.withCheckIR(true )),
57
+
58
+ // Exclude all these projects from `configureIDE/launchIDE` since they
59
+ // take time to compile, print a bunch of warnings, and are rarely edited.
60
+ excludeFromIDE := true
57
61
)
58
62
}
59
63
60
64
object Build {
61
- val referenceVersion = " 0.21 .0-RC1 "
65
+ val referenceVersion = " 0.22 .0-bin-20200114-193f7de-NIGHTLY "
62
66
63
67
val baseVersion = " 0.22.0"
64
68
val baseSbtDottyVersion = " 0.3.5"
@@ -730,16 +734,18 @@ object Build {
730
734
case Bootstrapped => `dotty-compiler-bootstrapped`
731
735
}
732
736
733
- // Settings shared between dotty-library and dotty-library-bootstrapped
737
+ // Settings shared between dotty-library, dotty-library-bootstrapped and dotty-library-bootstrappedJS
734
738
lazy val dottyLibrarySettings = Seq (
735
- // Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
736
- scalacOptions in Compile ++= Seq (" -sourcepath" , (sourceDirectories in Compile ).value.map(_.getAbsolutePath).distinct.mkString(File .pathSeparator)),
739
+ scalacOptions in Compile ++= Seq (
740
+ // Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
741
+ " -sourcepath" , (sourceDirectories in Compile ).value.map(_.getAbsolutePath).distinct.mkString(File .pathSeparator),
742
+ // support declaration of scala.compiletime.erasedValue
743
+ " -Yerased-terms"
744
+ ),
737
745
)
738
746
739
747
lazy val `dotty-library` = project.in(file(" library" )).asDottyLibrary(NonBootstrapped )
740
748
lazy val `dotty-library-bootstrapped` : Project = project.in(file(" library" )).asDottyLibrary(Bootstrapped )
741
- // TODO: move -Yerased-terms to dottyLibrarySettings on reference compiler update
742
- .settings(scalacOptions in Compile += " -Yerased-terms" ) // support declaration of scala.compiletime.erasedValue
743
749
744
750
def dottyLibrary (implicit mode : Mode ): Project = mode match {
745
751
case NonBootstrapped => `dotty-library`
@@ -761,7 +767,6 @@ object Build {
761
767
settings(
762
768
unmanagedSourceDirectories in Compile :=
763
769
(unmanagedSourceDirectories in (`dotty-library-bootstrapped`, Compile )).value,
764
- scalacOptions += " -Yerased-terms" , // support declaration of scala.compiletime.erasedValue
765
770
)
766
771
767
772
lazy val tastyCoreSettings = Seq (
0 commit comments