Skip to content

Commit

Permalink
add bootstrapped distribution
Browse files Browse the repository at this point in the history
  • Loading branch information
liufengyun committed May 29, 2017
1 parent a4d1894 commit 4b7e45e
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ val `scala-compiler` = Build.`scala-compiler`
val `scala-reflect` = Build.`scala-reflect`
val scalap = Build.scalap
val dist = Build.dist
val `dist-bootstrapped` = Build.`dist-bootstrapped`

val `sbt-dotty` = Build.`sbt-dotty`
val `vscode-dotty` = Build.`vscode-dotty`
Expand Down
20 changes: 20 additions & 0 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1178,4 +1178,24 @@ object Build {
packResourceDir += (baseDirectory.value / "bin" -> "bin"),
packArchiveName := "dotty-" + dottyVersion
)

// Same as `dist` but using bootstrapped projects.
lazy val `dist-bootstrapped` = project.
dependsOn(`dotty-interfaces`).
dependsOn(`dotty-library-bootstrapped`).
dependsOn(`dotty-compiler-bootstrapped`).
dependsOn(`dotty-doc-bootstrapped`).
settings(commonBootstrappedSettings).
settings(packSettings).
settings(
target := baseDirectory.value / "target", // override setting in commonBootstrappedSettings
triggeredMessage in ThisBuild := Watched.clearWhenTriggered,
submoduleChecks,
publishArtifact := false,
// packMain := Map("dummy" -> "dotty.tools.dotc.Main"),
packExpandedClasspath := true,
// packExcludeJars := Seq("scala-library-.*\\.jar"),
packResourceDir += (baseDirectory.value / "bin" -> "bin"),
packArchiveName := "dotty-" + dottyVersion
)
}

0 comments on commit 4b7e45e

Please sign in to comment.