sbt / zinc

Scala incremental compiler library, used by sbt and other build tools
Apache License 2.0
333 stars 118 forks source link

Don't use autoBoot / filterLibrary for 2.13 and 3 #1331

Closed lrytz closed 7 months ago

lrytz commented 7 months ago

Passing -bootclasspath /path/to/scala-library.jar to the Scala compiler is only done for historical reasons. Putting the Scala library on the ordinary classspath is equivalent.

This commit adds a noboot factory for ClasspathOptions which doesn't use -bootclasspath for Scala 2.13 and Scala 3.

This change was made in the context of SIP-51, unfreeze the Scala library / https://github.com/sbt/sbt/pull/7480, but it's just a cleanup and not actually required.