File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -2094,7 +2094,16 @@ object Build {
2094
2094
}
2095
2095
)
2096
2096
2097
- def asTastyCoreScala2 : Project = project.settings(commonScala2Settings)
2097
+ def asTastyCoreScala2 : Project = project
2098
+ .settings(commonScala2Settings)
2099
+ // need to add @annotation.internal.sharable to the classpath for compiling
2100
+ // we don't actually publish this library anywhere, so it's fine.
2101
+ // if someone depends on the sources of tasty-core in a scala 2 project,
2102
+ // they should strip the sharable annotation, or add -Ytasty-reader
2103
+ .dependsOn(dottyLibrary(NonBootstrapped ) % Provided )
2104
+ .settings(
2105
+ scalacOptions += " -Ytasty-reader" // to read scala3 library
2106
+ )
2098
2107
2099
2108
def asDottyBench (implicit mode : Mode ): Project = project.withCommonSettings.
2100
2109
dependsOn(dottyCompiler).
You can’t perform that action at this time.
0 commit comments