summaryrefslogtreecommitdiff
path: root/scalalib/src
diff options
context:
space:
mode:
authorAlexandra Dima <alexandra.dima@jetbrains.com>2019-07-17 13:54:08 +0200
committerSamvel Abrahamyan <samvel1024@gmail.com>2019-10-12 14:33:05 +0200
commit9a67570ae953b02f6562de31efaad4d1cba15983 (patch)
treedae7dee4d845c1719c2b07f8968f7f2360e91064 /scalalib/src
parent4fe042ea883af0a93b90bc7f00bfd55d05a44465 (diff)
downloadmill-9a67570ae953b02f6562de31efaad4d1cba15983.tar.gz
mill-9a67570ae953b02f6562de31efaad4d1cba15983.tar.bz2
mill-9a67570ae953b02f6562de31efaad4d1cba15983.zip
Improved compilation by sending all requested targets to the mill evaluator to be compiled together rather than in different evaluation sessions. This avoids duplicated compilation results and side effects like diagnostics and task progress notifications.
Diffstat (limited to 'scalalib/src')
-rw-r--r--scalalib/src/JavaModule.scala2
-rw-r--r--scalalib/src/ScalaModule.scala2
2 files changed, 2 insertions, 2 deletions
diff --git a/scalalib/src/JavaModule.scala b/scalalib/src/JavaModule.scala
index cd467a3b..822d7985 100644
--- a/scalalib/src/JavaModule.scala
+++ b/scalalib/src/JavaModule.scala
@@ -222,7 +222,7 @@ trait JavaModule extends mill.Module with TaskModule with GenIdeaModule { outer
allSourceFiles().map(_.path),
compileClasspath().map(_.path),
javacOptions() ++ T.ctx.bsp.args,
- T.ctx().reporter
+ T.ctx().reporter(hashCode)
)
}
diff --git a/scalalib/src/ScalaModule.scala b/scalalib/src/ScalaModule.scala
index 85f1b6db..5669ca8c 100644
--- a/scalalib/src/ScalaModule.scala
+++ b/scalalib/src/ScalaModule.scala
@@ -143,7 +143,7 @@ trait ScalaModule extends JavaModule { outer =>
scalacOptions() ++ T.ctx.bsp.args,
scalaCompilerClasspath().map(_.path),
scalacPluginClasspath().map(_.path),
- T.ctx().reporter
+ T.ctx().reporter(hashCode)
)
}