Skip to content

Commit

Permalink
feat: remote target platform constraints on the toolchains
Browse files Browse the repository at this point in the history
  • Loading branch information
ffortier committed Feb 22, 2024
1 parent 4a27e13 commit e60134d
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions tools/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
load("//opa:defs.bzl", "opa_toolchain")
load("@rules_python//python:defs.bzl", "py_binary")
load("//opa:defs.bzl", "opa_toolchain")

py_binary(
name = "opa_signer",
Expand Down Expand Up @@ -66,10 +66,7 @@ toolchain(
"@platforms//os:linux",
"@platforms//cpu:x86_64",
],
target_compatible_with = [
"@platforms//os:linux",
"@platforms//cpu:x86_64",
],
target_compatible_with = [],
toolchain = ":opa_linux_amd64",
toolchain_type = ":toolchain_type",
visibility = ["//visibility:public"],
Expand All @@ -81,10 +78,7 @@ toolchain(
"@platforms//os:linux",
"@platforms//cpu:arm64",
],
target_compatible_with = [
"@platforms//os:linux",
"@platforms//cpu:arm64",
],
target_compatible_with = [],
toolchain = ":opa_linux_arm64",
toolchain_type = ":toolchain_type",
visibility = ["//visibility:public"],
Expand All @@ -96,10 +90,7 @@ toolchain(
"@platforms//os:osx",
"@platforms//cpu:x86_64",
],
target_compatible_with = [
"@platforms//os:osx",
"@platforms//cpu:x86_64",
],
target_compatible_with = [],
toolchain = ":opa_macos_amd64",
toolchain_type = ":toolchain_type",
visibility = ["//visibility:public"],
Expand All @@ -111,10 +102,7 @@ toolchain(
"@platforms//os:macos",
"@platforms//cpu:arm64",
],
target_compatible_with = [
"@platforms//os:macos",
"@platforms//cpu:arm64",
],
target_compatible_with = [],
toolchain = ":opa_macos_arm64",
toolchain_type = ":toolchain_type",
visibility = ["//visibility:public"],
Expand All @@ -126,10 +114,7 @@ toolchain(
"@platforms//os:windows",
"@platforms//cpu:x86_64",
],
target_compatible_with = [
"@platforms//os:windows",
"@platforms//cpu:x86_64",
],
target_compatible_with = [],
toolchain = ":opa_windows_amd64",
toolchain_type = ":toolchain_type",
visibility = ["//visibility:public"],
Expand Down

0 comments on commit e60134d

Please sign in to comment.