File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -632,6 +632,7 @@ object Build {
632
632
packageOptions += ManifestAttributes ((" Git-Hash" , VersionUtil .gitHash)),
633
633
634
634
javaOptions ++= {
635
+ val log = streams.value.log
635
636
val managedSrcDir = {
636
637
// Populate the directory
637
638
(Compile / managedSources).value
@@ -641,9 +642,13 @@ object Build {
641
642
val externalDeps = externalCompilerClasspathTask.value
642
643
val jars = packageAll.value
643
644
644
- val scala2LibraryTasty =
645
- if (useScala2LibraryTasty.value) Seq (" -Ddotty.tests.tasties.scalaLibrary=" + jars(" scala2-library-tasty" ))
646
- else Seq .empty
645
+ val scala2LibraryTasty = jars.get(" scala2-library-tasty" ) match {
646
+ case Some (scala2LibraryTastyJar) if useScala2LibraryTasty.value =>
647
+ Seq (" -Ddotty.tests.tasties.scalaLibrary=" + scala2LibraryTastyJar)
648
+ case _ =>
649
+ if (useScala2LibraryTasty.value) log.warn(" useScala2LibraryTasty is ignored on non-bootstrapped compiler" )
650
+ Seq .empty
651
+ }
647
652
648
653
scala2LibraryTasty ++ Seq (
649
654
" -Ddotty.tests.dottyCompilerManagedSources=" + managedSrcDir,
You can’t perform that action at this time.
0 commit comments