Skip to content

Commit b4e726e

Browse files
authored
Merge pull request #22 from dtolnay/libtargetcompat
Support target_compatible_with override for rust_bootstrap_library
2 parents 76eb880 + 8e367d3 commit b4e726e

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)