Skip to content

Commit bd243e5

Browse files
authored
Merge pull request #20 from dtolnay/libcompat
Relax compatibility constraints on the library directory
2 parents c1d783e + b73c8c3 commit bd243e5

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

defs.bzl

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,9 @@ def cxx_bootstrap_library(
151151

152152
def _target_constraints(crate_root):
153153
if crate_root and crate_root.startswith("rust/library/"):
154-
target_compatible_with = [
155-
"//constraints:library",
156-
"//constraints:build-script=false",
157-
]
154+
target_compatible_with = ["//constraints:library"]
158155
elif crate_root and (crate_root.startswith("rust/compiler/") or crate_root.startswith("rust/src/")):
159-
target_compatible_with = [
160-
"//constraints:compiler",
161-
]
156+
target_compatible_with = ["//constraints:compiler"]
162157
else:
163158
target_compatible_with = select({
164159
"DEFAULT": ["prelude//:none"],

0 commit comments

Comments
 (0)