From e60134dc266cf26ca6df210b0c584210b4bc34f5 Mon Sep 17 00:00:00 2001 From: Francis Fortier Date: Thu, 22 Feb 2024 09:22:57 -0500 Subject: [PATCH] feat: remote target platform constraints on the toolchains --- tools/BUILD.bazel | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/tools/BUILD.bazel b/tools/BUILD.bazel index 258aff8..a48ceab 100644 --- a/tools/BUILD.bazel +++ b/tools/BUILD.bazel @@ -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", @@ -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"], @@ -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"], @@ -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"], @@ -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"], @@ -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"],