Skip to content

Commit e60134d

Browse files
committed
feat: remote target platform constraints on the toolchains
1 parent 4a27e13 commit e60134d

File tree

1 file changed

+6
-21
lines changed

1 file changed

+6
-21
lines changed

tools/BUILD.bazel

Lines changed: 6 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
load("//opa:defs.bzl", "opa_toolchain")
21
load("@rules_python//python:defs.bzl", "py_binary")
2+
load("//opa:defs.bzl", "opa_toolchain")
33

44
py_binary(
55
name = "opa_signer",
@@ -66,10 +66,7 @@ toolchain(
6666
"@platforms//os:linux",
6767
"@platforms//cpu:x86_64",
6868
],
69-
target_compatible_with = [
70-
"@platforms//os:linux",
71-
"@platforms//cpu:x86_64",
72-
],
69+
target_compatible_with = [],
7370
toolchain = ":opa_linux_amd64",
7471
toolchain_type = ":toolchain_type",
7572
visibility = ["//visibility:public"],
@@ -81,10 +78,7 @@ toolchain(
8178
"@platforms//os:linux",
8279
"@platforms//cpu:arm64",
8380
],
84-
target_compatible_with = [
85-
"@platforms//os:linux",
86-
"@platforms//cpu:arm64",
87-
],
81+
target_compatible_with = [],
8882
toolchain = ":opa_linux_arm64",
8983
toolchain_type = ":toolchain_type",
9084
visibility = ["//visibility:public"],
@@ -96,10 +90,7 @@ toolchain(
9690
"@platforms//os:osx",
9791
"@platforms//cpu:x86_64",
9892
],
99-
target_compatible_with = [
100-
"@platforms//os:osx",
101-
"@platforms//cpu:x86_64",
102-
],
93+
target_compatible_with = [],
10394
toolchain = ":opa_macos_amd64",
10495
toolchain_type = ":toolchain_type",
10596
visibility = ["//visibility:public"],
@@ -111,10 +102,7 @@ toolchain(
111102
"@platforms//os:macos",
112103
"@platforms//cpu:arm64",
113104
],
114-
target_compatible_with = [
115-
"@platforms//os:macos",
116-
"@platforms//cpu:arm64",
117-
],
105+
target_compatible_with = [],
118106
toolchain = ":opa_macos_arm64",
119107
toolchain_type = ":toolchain_type",
120108
visibility = ["//visibility:public"],
@@ -126,10 +114,7 @@ toolchain(
126114
"@platforms//os:windows",
127115
"@platforms//cpu:x86_64",
128116
],
129-
target_compatible_with = [
130-
"@platforms//os:windows",
131-
"@platforms//cpu:x86_64",
132-
],
117+
target_compatible_with = [],
133118
toolchain = ":opa_windows_amd64",
134119
toolchain_type = ":toolchain_type",
135120
visibility = ["//visibility:public"],

0 commit comments

Comments
 (0)