From 1a987f3a8ba530630e0c2d0528ad4c94c7440564 Mon Sep 17 00:00:00 2001 From: Sam Gammon Date: Tue, 2 Jan 2024 15:15:37 -0800 Subject: [PATCH] fix: restore cpp toolchain symbol for classic rules Signed-off-by: Sam Gammon --- internal/native_image/common.bzl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/internal/native_image/common.bzl b/internal/native_image/common.bzl index 4dc0e84c..7d685377 100644 --- a/internal/native_image/common.bzl +++ b/internal/native_image/common.bzl @@ -8,6 +8,7 @@ load( _RULES_REPO = "@rules_graalvm" _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" @@ -214,6 +215,7 @@ DEBUG_CONDITION = _DEBUG_CONDITION COVERAGE_CONDITION = _COVERAGE_CONDITION OPTIMIZATION_MODE_CONDITION = _OPTIMIZATION_MODE_CONDITION GVM_TOOLCHAIN_TYPE = _GVM_TOOLCHAIN_TYPE +BAZEL_CPP_TOOLCHAIN_TYPE = _BAZEL_CPP_TOOLCHAIN_TYPE BAZEL_CURRENT_CPP_TOOLCHAIN = _BAZEL_CURRENT_CPP_TOOLCHAIN MACOS_CONSTRAINT = _MACOS_CONSTRAINT WINDOWS_CONSTRAINT = _WINDOWS_CONSTRAINT