Skip to content

Commit db19a62

Browse files
committed
Allow compiling stdLib213 with community-build/run
1 parent e978efe commit db19a62

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

community-build/test/scala/dotty/communitybuild/readme.md renamed to community-build/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ To add your project to the community build you can follow these steps:
1414
2. Open a PR against this repo that:
1515
- Adds your project as a new git submodule
1616
- `git submodule add https://github.com/lampepfl/XYZ.git community-build/community-projects/XYZ`
17+
- Add the project to [projects.scala](https://github.com/lampepfl/dotty/blob/master/community-build/src/scala/dotty/communitybuild/projects.scala)
1718
- Adds a test in [CommunityBuildTest.scala](https://github.com/lampepfl/dotty/blob/master/community-build/test/scala/dotty/communitybuild/CommunityBuildTest.scala)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package dotty.communitybuild
2+
3+
object Main {
4+
/** Builds stdlib.
5+
*
6+
* Output is available in build/pack/lib directory in stdlib project.
7+
*
8+
* In the future, we allow building different projects based on arguments,
9+
* but for now stdlib is the only usecase.
10+
*/
11+
def main(args: Array[String]): Unit =
12+
projects.stdLib213.publish()
13+
}

community-build/src/scala/dotty/communitybuild/projects.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,9 @@ object projects:
199199

200200
lazy val stdLib213 = SbtCommunityProject(
201201
project = "stdLib213",
202+
extraSbtArgs = List("-Dscala.build.compileWithDotty=true"),
202203
sbtTestCommand = """;set scalacOptions in Global += "-Yerased-terms" ;library/compile""",
203-
extraSbtArgs = List("-Dscala.build.compileWithDotty=true")
204+
sbtPublishCommand = """;set scalacOptions in Global += "-Yerased-terms" ;set publishArtifact in (library, Compile, packageDoc) := false ;library/publishLocal""",
204205
)
205206

206207
lazy val shapeless = SbtCommunityProject(

0 commit comments

Comments
 (0)