Skip to content

Commit ecf8a1e

Browse files
authored
Update rustc.bzl
1 parent 4b47299 commit ecf8a1e

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

rust/private/rustc.bzl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1595,8 +1595,9 @@ def rustc_compile_action(
15951595
DefaultInfo(
15961596
# nb. This field is required for cc_library to depend on our output.
15971597
files = depset(outputs),
1598-
default_runfiles = default_runfiles,
1599-
data_runfiles = data_runfiles,
1598+
default_runfiles = default_runfiles if crate_info.type not in ["bin", "staticlib", "cdylib"] else None,
1599+
data_runfiles = data_runfiles if crate_info.type not in ["bin", "staticlib", "cdylib"] else None,
1600+
runfiles = runfiles if crate_info.type in ["bin", "staticlib", "cdylib"] else None,
16001601
executable = executable,
16011602
),
16021603
] + cc_info

0 commit comments

Comments
 (0)