Skip to content

Commit 257b9ad

Browse files
Restrict unecessary inputs to 'JdepsMerge' actions (#1175)
1 parent 6f3c7db commit 257b9ad

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

kotlin/internal/jvm/compile.bzl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -346,8 +346,10 @@ def _run_merge_jdeps_action(ctx, toolchains, jdeps, outputs, deps):
346346
len(jdeps),
347347
)
348348

349-
# For sandboxing to work, and for this action to be deterministic, the compile jars need to be passed as inputs
350-
inputs = depset(jdeps, transitive = [depset([], transitive = [dep.transitive_compile_time_jars for dep in deps])])
349+
inputs = depset(jdeps)
350+
if not toolchains.kt.experimental_report_unused_deps == "off":
351+
# For sandboxing to work, and for this action to be deterministic, the compile jars need to be passed as inputs
352+
inputs = depset(jdeps, transitive = [depset([], transitive = [dep.transitive_compile_time_jars for dep in deps])])
351353

352354
ctx.actions.run(
353355
mnemonic = mnemonic,

0 commit comments

Comments
 (0)