Skip to content

Commit

Permalink
Merge pull request #2128 from Arthurm1/specify_javac_target_root
Browse files Browse the repository at this point in the history
specify scip javac plugin targetroot exactly
  • Loading branch information
tgodzik authored Aug 1, 2023
2 parents 041a90b + bfe873a commit a3a78de
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion frontend/src/main/scala/bloop/engine/tasks/CompileTask.scala
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,13 @@ object CompileTask {
5
)
}
// get Bloop to replace the javac-classes-directory instead of the scip plugin so that no internal javac APIs are used.
val newJavacOptions = project.javacOptions.map(option =>
option.replaceAllLiterally(
"-targetroot:javac-classes-directory",
s"-targetroot:${newClassesDir}"
)
)

val inputs = newScalacOptions.map { newScalacOptions =>
CompileInputs(
Expand All @@ -136,7 +143,7 @@ object CompileTask {
compileOut,
project.out,
newScalacOptions.toArray,
project.javacOptions.toArray,
newJavacOptions.toArray,
project.compileJdkConfig.flatMap(_.javacBin),
project.compileOrder,
project.classpathOptions,
Expand Down

0 comments on commit a3a78de

Please sign in to comment.