From 4a559b029e66b7b308e382ada5e17471db626545 Mon Sep 17 00:00:00 2001 From: Corbin McNeely-Smith <58151731+restingbull@users.noreply.github.com> Date: Fri, 16 Dec 2022 19:25:44 -0500 Subject: [PATCH] Enable new jarfs for multiplex workers. (#888) --- kotlin/internal/jvm/compile.bzl | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/kotlin/internal/jvm/compile.bzl b/kotlin/internal/jvm/compile.bzl index 42f4b60c6..5a2a79e25 100644 --- a/kotlin/internal/jvm/compile.bzl +++ b/kotlin/internal/jvm/compile.bzl @@ -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)