Skip to content

Commit 9bad82b

Browse files
committed
Only Ycheck scala2-library-bootstrapped once
We only Ycheck the compilation of scala2-library-bootstrapped once. This test the -Yscala2-stdlib flag. We do this on the MiMa test to avoid the large overhead of Ycheck when compiling scala3-bootstrapped.
1 parent b2cd869 commit 9bad82b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

project/Build.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1004,7 +1004,6 @@ object Build {
10041004
},
10051005
Compile / doc / scalacOptions += "-Ydocument-synthetic-types",
10061006
scalacOptions += "-Yscala2-stdlib",
1007-
scalacOptions += "-Ycheck:all",
10081007
scalacOptions -= "-Xfatal-warnings",
10091008
ivyConfigurations += SourceDeps.hide,
10101009
transitiveClassifiers := Seq("sources"),

project/scripts/scala2-library-tasty-mima.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ setTastyVersion $MINOR_TASTY_VERSION_SUPPORTED_BY_TASTY_MIMA 0
1717
# Run scala2-library-bootstrapped/tastyMiMaReportIssues using a custom TASTy version.
1818
# We clean before to make sure all sources are recompiled using the new TASTY version.
1919
# We clean after to make sure no other test will use the TASTy generated with this version.
20-
"$SBT" "clean; scala2-library-bootstrapped/clean; reload; scala2-library-bootstrapped/tastyMiMaReportIssues; clean; scala2-library-bootstrapped/clean"
20+
# We set -Ycheck:all to check that -Yscala2-stdlib does not gererate inconsistent trees.
21+
"$SBT" 'clean; set `scala2-library-bootstrapped`/scalacOptions += "-Ycheck:all"; scala2-library-bootstrapped/clean; reload; scala2-library-bootstrapped/tastyMiMaReportIssues; clean; scala2-library-bootstrapped/clean'
2122

2223
setTastyVersion $MINOR_TASTY_VERSION $EXPERIMENTAL_TASTY_VERSION

0 commit comments

Comments
 (0)