Skip to content

Commit d54801b

Browse files
committed
Pass stdlib to clit compiler runtime.
1 parent 4ece4ea commit d54801b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/starlark/core/compile/cli/compile.bzl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ def compile_kotlin_for_jvm(
2929
],
3030
)
3131

32-
args = actions.args().add("-d", class_jar)
32+
# Set the stdlib for the compiler to run on.
33+
args = actions.args().add("--wrapper_script_flag=--main_advice_classpath=%s" % (
34+
":".join([f.path for f in toolchain_info.kotlin_stdlib.transitive_compile_time_jars.to_list()])
35+
))
36+
args.add("-d", class_jar)
3337
args.add("-jdk-home", toolchain_info.java_runtime.java_home)
3438
args.add("-jvm-target", toolchain_info.jvm_target)
3539
args.add("-no-stdlib")

0 commit comments

Comments
 (0)