Skip to content

Commit 585b943

Browse files
nicolasstuckimichelou
authored andcommitted
Re-bootstrap compiler
1 parent 8f2de93 commit 585b943

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

project/Build.scala

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -386,11 +386,6 @@ object Build {
386386
Compile / doc / scalacOptions ++= scalacOptionsDocSettings,
387387
// sbt-dotty defines `scalaInstance in doc` so we need to override it manually
388388
doc / scalaInstance := scalaInstance.value,
389-
<<<<<<< HEAD
390-
=======
391-
392-
disableDocSetting,
393-
>>>>>>> 5b2ab78721 (Move to sbt slash syntax)
394389
)
395390

396391
lazy val commonBenchmarkSettings = Seq(
@@ -717,11 +712,6 @@ object Build {
717712
(Compile / scalacOptions) ++= Seq(
718713
// Needed so that the library sources are visible when `dotty.tools.dotc.core.Definitions#init` is called
719714
"-sourcepath", (Compile / sourceDirectories).value.map(_.getAbsolutePath).distinct.mkString(File.pathSeparator),
720-
<<<<<<< HEAD
721-
=======
722-
// support declaration of scala.compiletime.erasedValue
723-
"-Yerased-terms"
724-
>>>>>>> 5b2ab78721 (Move to sbt slash syntax)
725715
),
726716
)
727717

@@ -758,11 +748,7 @@ object Build {
758748
settings(
759749
libraryDependencies +=
760750
("org.scala-js" %% "scalajs-library" % scalaJSVersion).withDottyCompat(scalaVersion.value),
761-
<<<<<<< HEAD
762751
Compile / unmanagedSourceDirectories ++=
763-
=======
764-
Compile / unmanagedSourceDirectories :=
765-
>>>>>>> 5b2ab78721 (Move to sbt slash syntax)
766752
(`scala3-library-bootstrapped` / Compile / unmanagedSourceDirectories).value,
767753

768754
// Configure the source maps to point to GitHub for releases
@@ -1742,27 +1728,12 @@ object Build {
17421728
(Test / Build.testcasesSourceRoot),
17431729
Build.testDocumentationRoot,
17441730
),
1745-
<<<<<<< HEAD
1746-
=======
1747-
Compile / resourceGenerators += Def.task {
1748-
val jsDestinationFile = (Compile / resourceManaged).value / "dotty_res" / "scripts" / "searchbar.js"
1749-
sbt.IO.copyFile((`scaladoc-js` / Compile / fullOptJS).value.data, jsDestinationFile)
1750-
Seq(jsDestinationFile)
1751-
}.taskValue,
1752-
Compile / resourceGenerators += Def.task {
1753-
val cssDesitnationFile = (Compile / resourceManaged).value / "dotty_res" / "styles" / "scaladoc-searchbar.css"
1754-
val cssSourceFile = (`scaladoc-js` / Compile / resourceDirectory).value / "scaladoc-searchbar.css"
1755-
sbt.IO.copyFile(cssSourceFile, cssDesitnationFile)
1756-
Seq(cssDesitnationFile)
1757-
}.taskValue,
1758-
>>>>>>> 5b2ab78721 (Move to sbt slash syntax)
17591731
testDocumentationRoot := (baseDirectory.value / "test-documentations").getAbsolutePath,
17601732
Test / buildInfoPackage := "dotty.tools.scaladoc.test",
17611733
BuildInfoPlugin.buildInfoScopedSettings(Test),
17621734
)
17631735
}
17641736

1765-
<<<<<<< HEAD
17661737
def asScaladocTestcases(implicit mode: Mode): Project =
17671738
if (mode == Bootstrapped)
17681739
project.dependsOn(`scala3-compiler-bootstrapped`).settings(commonBootstrappedSettings)
@@ -1780,21 +1751,6 @@ object Build {
17801751
libraryDependencies += ("org.scala-js" %%% "scalajs-dom" % "1.1.0").withDottyCompat(scalaVersion.value)
17811752
)
17821753
}
1783-
=======
1784-
def asScaladocTestcases: Project =
1785-
project.dependsOn(`scala3-compiler-bootstrapped`).settings(commonBootstrappedSettings)
1786-
1787-
def asScaladocJs: Project =
1788-
project.
1789-
enablePlugins(MyScalaJSPlugin).
1790-
dependsOn(`scala3-library-bootstrappedJS`).
1791-
settings(
1792-
Test / fork := false,
1793-
scalaJSUseMainModuleInitializer := true,
1794-
libraryDependencies += ("org.scala-js" %%% "scalajs-dom" % "1.1.0").withDottyCompat(scalaVersion.value)
1795-
)
1796-
1797-
>>>>>>> 5b2ab78721 (Move to sbt slash syntax)
17981754

17991755
def asDist(implicit mode: Mode): Project = project.
18001756
enablePlugins(PackPlugin).

0 commit comments

Comments
 (0)