Skip to content

Commit

Permalink
Not generating CcInfo when out_binary is True (#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
lizan committed Oct 15, 2020
1 parent 6df6e76 commit b56d166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rust/private/rustc.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ def establish_cc_info(ctx, crate_info, toolchain, cc_toolchain, feature_configur
list: A list containing the CcInfo provider
"""

if crate_info.is_test or crate_info.type not in ("staticlib", "cdylib"):
if crate_info.is_test or crate_info.type not in ("staticlib", "cdylib") or getattr(ctx.attr, "out_binary", False):
return []

if crate_info.type == "staticlib":
Expand Down

0 comments on commit b56d166

Please sign in to comment.