Skip to content

Commit ce4b76e

Browse files
committed
fix: fix the dependencies of the bootstrapped stdlib
1 parent 3bea2f3 commit ce4b76e

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

project/Build.scala

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2007,6 +2007,7 @@ object Build {
20072007
// (not the actual version we use to compile the project)
20082008
scalaVersion := referenceVersion,
20092009
crossPaths := false, // org.scala-lang:scala-library doesn't have a crosspath
2010+
autoScalaLibrary := false, // DO NOT DEPEND ON THE STDLIB, IT IS THE STDLIB
20102011
// Add the source directories for the stdlib (non-boostrapped)
20112012
Compile / unmanagedSourceDirectories := Seq(baseDirectory.value / "src"),
20122013
Compile / unmanagedSourceDirectories += baseDirectory.value / "src-bootstrapped",
@@ -2031,10 +2032,8 @@ object Build {
20312032
publish / skip := false,
20322033
// Project specific target folder. sbt doesn't like having two projects using the same target folder
20332034
target := target.value / "scala-library-bootstrapped",
2034-
// we need to have the `scala-library` artifact in the classpath for `ScalaLibraryPlugin` to work
2035-
// this was the only way to not get the artifact evicted by sbt. Even a custom configuration didn't work
2036-
// NOTE: true is the default value, just making things clearer here
2037-
managedScalaInstance := true,
2035+
// we do not need sbt to create a managed instance for us, we do it manually in the next setting
2036+
managedScalaInstance := false,
20382037
// Configure the nonbootstrapped compiler
20392038
scalaInstance := {
20402039
val externalCompilerDeps = (`scala3-compiler-nonbootstrapped` / Compile / externalDependencyClasspath).value.map(_.data).toSet

0 commit comments

Comments
 (0)