File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -1541,11 +1541,26 @@ object Build {
15411541 dependsOn(tastyCore).
15421542 settings(dottyCompilerSettings)
15431543
1544- def asDottyLibrary (implicit mode : Mode ): Project = project.withCommonSettings.
1545- settings(
1546- libraryDependencies += " org.scala-lang" % " scala-library" % stdlibVersion
1547- ).
1548- settings(dottyLibrarySettings)
1544+ def asDottyLibrary (implicit mode : Mode ): Project = {
1545+ val base =
1546+ project.withCommonSettings.
1547+ settings(
1548+ libraryDependencies += " org.scala-lang" % " scala-library" % stdlibVersion
1549+ ).
1550+ settings(dottyLibrarySettings)
1551+ if (mode == Bootstrapped ) {
1552+ base.settings(Seq (
1553+ (Compile / doc) := {
1554+ // Workaround for
1555+ // [error] |object IArray cannot have the same name as object IArray in package scala
1556+ // -- cannot define object member with the same name as a object member in self reference _.
1557+ val doWork = (Compile / doc).result.value
1558+ (Compile / doc/ target).value
1559+ }
1560+ ))
1561+ } else base
1562+ }
1563+
15491564
15501565 def asTastyCore (implicit mode : Mode ): Project = project.withCommonSettings.
15511566 dependsOn(dottyLibrary).
You can’t perform that action at this time.
0 commit comments