Skip to content

Commit 1c6c5c6

Browse files
committed
Build.scala: Exclude the optimized projects from the IDE
1 parent c250f66 commit 1c6c5c6

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

project/Build.scala

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,15 @@ object Build {
228228

229229

230230
// Bootstrap with -optimise
231-
lazy val commonOptimisedSettings = commonBootstrappedSettings ++ Seq(scalacOptions ++= Seq("-optimise"))
231+
lazy val commonOptimisedSettings = commonBootstrappedSettings ++ Seq(
232+
scalacOptions ++= Seq("-optimise"),
233+
234+
// The *-bootstrapped and *-optimised projects contain the same sources, so
235+
// we only need to import one set in the IDE. We prefer to import the
236+
// non-optimized projects because optimize is slower to compile and we do
237+
// not trust its output yet.
238+
excludeFromIDE := true
239+
)
232240

233241
lazy val commonBenchmarkSettings = Seq(
234242
mainClass in (Jmh, run) := Some("dotty.tools.benchmarks.Bench"), // custom main for jmh:run

0 commit comments

Comments
 (0)