Skip to content

Commit

Permalink
fixed merge issues with scalac_opts
Browse files Browse the repository at this point in the history
  • Loading branch information
or-shachar committed Mar 4, 2018
1 parent 38bc14c commit 4157821
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scala/scala.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,12 @@ CurrentTarget: {current_target}
compiler_classpath = separator.join([j.path for j in compiler_classpath_jars])

toolchain = ctx.toolchains['@io_bazel_rules_scala//scala:toolchain_type']
scalacopts = toolchain.scalacopts + ctx.attr.scalacopts
# always append -YdisableFlatCpCaching, workaround for
# https://github.com/bazelbuild/rules_scala/issues/305
# ~remove once we upgrade to Scala 2.12.4~
# ^^ turns out that 2.12.4 didn't fix the issue, see:
# https://github.com/bazelbuild/rules_scala/pull/310#issuecomment-337466097
scalacopts = toolchain.scalacopts + ctx.attr.scalacopts + ["-YdisableFlatCpCaching"]

scalac_args = """
Classpath: {cp}
Expand Down

0 comments on commit 4157821

Please sign in to comment.