Skip to content

Commit 4b7e45e

Browse files
committed
add bootstrapped distribution
1 parent a4d1894 commit 4b7e45e

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

build.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ val `scala-compiler` = Build.`scala-compiler`
1919
val `scala-reflect` = Build.`scala-reflect`
2020
val scalap = Build.scalap
2121
val dist = Build.dist
22+
val `dist-bootstrapped` = Build.`dist-bootstrapped`
2223

2324
val `sbt-dotty` = Build.`sbt-dotty`
2425
val `vscode-dotty` = Build.`vscode-dotty`

project/Build.scala

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,4 +1178,24 @@ object Build {
11781178
packResourceDir += (baseDirectory.value / "bin" -> "bin"),
11791179
packArchiveName := "dotty-" + dottyVersion
11801180
)
1181+
1182+
// Same as `dist` but using bootstrapped projects.
1183+
lazy val `dist-bootstrapped` = project.
1184+
dependsOn(`dotty-interfaces`).
1185+
dependsOn(`dotty-library-bootstrapped`).
1186+
dependsOn(`dotty-compiler-bootstrapped`).
1187+
dependsOn(`dotty-doc-bootstrapped`).
1188+
settings(commonBootstrappedSettings).
1189+
settings(packSettings).
1190+
settings(
1191+
target := baseDirectory.value / "target", // override setting in commonBootstrappedSettings
1192+
triggeredMessage in ThisBuild := Watched.clearWhenTriggered,
1193+
submoduleChecks,
1194+
publishArtifact := false,
1195+
// packMain := Map("dummy" -> "dotty.tools.dotc.Main"),
1196+
packExpandedClasspath := true,
1197+
// packExcludeJars := Seq("scala-library-.*\\.jar"),
1198+
packResourceDir += (baseDirectory.value / "bin" -> "bin"),
1199+
packArchiveName := "dotty-" + dottyVersion
1200+
)
11811201
}

0 commit comments

Comments
 (0)