Skip to content

Commit 8e367d3

Browse files
committed
Support target_compatible_with override for rust_bootstrap_library
1 parent 76eb880 commit 8e367d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

defs.bzl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ def rust_bootstrap_library(
5151
proc_macro = False,
5252
rustc_flags = [],
5353
srcs = [],
54+
target_compatible_with = None,
5455
visibility = None,
5556
**kwargs):
56-
target_compatible_with = _target_constraints(crate_root)
57+
target_compatible_with = target_compatible_with or _target_constraints(crate_root)
5758

5859
if name.endswith("-0.0.0"):
5960
versioned_name = name

0 commit comments

Comments
 (0)