From 24791e1d124813914a663dc44be0bd9f2a02cd28 Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Fri, 1 Sep 2023 16:21:59 +0200 Subject: [PATCH] fix(native_image): add missing _linux_constraint attribute --- internal/native_image/common.bzl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/native_image/common.bzl b/internal/native_image/common.bzl index 98df58e9..fe29d36a 100644 --- a/internal/native_image/common.bzl +++ b/internal/native_image/common.bzl @@ -10,6 +10,7 @@ _DEFAULT_GVM_REPO = "@graalvm" _GVM_TOOLCHAIN_TYPE = "%s//graalvm/toolchain" % _RULES_REPO _BAZEL_CPP_TOOLCHAIN_TYPE = "@bazel_tools//tools/cpp:toolchain_type" _BAZEL_CURRENT_CPP_TOOLCHAIN = "@bazel_tools//tools/cpp:current_cc_toolchain" +_LINUX_CONSTRAINT = "@platforms//os:linux" _MACOS_CONSTRAINT = "@platforms//os:macos" _WINDOWS_CONSTRAINT = "@platforms//os:windows" @@ -66,6 +67,9 @@ _NATIVE_IMAGE_ATTRS = { "_cc_toolchain": attr.label( default = Label(_BAZEL_CURRENT_CPP_TOOLCHAIN), ), + "_linux_constraint": attr.label( + default = Label(_LINUX_CONSTRAINT), + ), "_macos_constraint": attr.label( default = Label(_MACOS_CONSTRAINT), ),