Skip to content

Commit

Permalink
Enable new jarfs for multiplex workers. (#888)
Browse files Browse the repository at this point in the history
  • Loading branch information
restingbull authored Dec 17, 2022
1 parent 01eae85 commit 4a559b0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion kotlin/internal/jvm/compile.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,15 @@ def _run_kt_builder_action(
for f, path in outputs.items():
args.add("--" + f, path)

experimental_multiplex_flags = [
"-Xuse-fast-jar-file-system",
] if toolchains.kt.execution_requirements["supports-multiplex-workers"] else []

# Unwrap kotlinc_options/javac_options options or default to the ones being provided by the toolchain
args.add_all("--kotlin_passthrough_flags", kotlinc_options_to_flags(kotlinc_options))
args.add_all(
"--kotlin_passthrough_flags",
kotlinc_options_to_flags(kotlinc_options) + experimental_multiplex_flags,
)
args.add_all("--javacopts", javac_options_to_flags(javac_options))
args.add_all("--direct_dependencies", _java_infos_to_compile_jars(compile_deps.deps))
args.add("--strict_kotlin_deps", toolchains.kt.experimental_strict_kotlin_deps)
Expand Down

0 comments on commit 4a559b0

Please sign in to comment.