From 5be90a4e04e64df0e9d26382e1006d3df21aaa91 Mon Sep 17 00:00:00 2001 From: Yun Peng Date: Thu, 28 Nov 2024 03:58:39 -0800 Subject: [PATCH] Expose get_cpu_value in toolchain_config_utils.bzl Copybara Import from https://github.com/bazelbuild/rules_cc/pull/283 BEGIN_PUBLIC Expose get_cpu_value in toolchain_config_utils.bzl (#283) Addressing https://github.com/bazelbuild/bazel-central-registry/issues/3260#issuecomment-2505731130 Closes #283 END_PUBLIC COPYBARA_INTEGRATE_REVIEW=https://github.com/bazelbuild/rules_cc/pull/283 from bazelbuild:meteorcloudy-patch-5 8d7f986ebc60c2c22f15adef1e663c474e78299a PiperOrigin-RevId: 700977422 Change-Id: I979446d5d79d8da465ec538632326d6d2c6932f7 --- cc/toolchains/toolchain_config_utils.bzl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cc/toolchains/toolchain_config_utils.bzl b/cc/toolchains/toolchain_config_utils.bzl index 48e52ec7..f6446be1 100644 --- a/cc/toolchains/toolchain_config_utils.bzl +++ b/cc/toolchains/toolchain_config_utils.bzl @@ -14,7 +14,7 @@ """Exposing some helper functions for configure cc toolchains.""" load("//cc/private/toolchain:cc_configure.bzl", _MSVC_ENVVARS = "MSVC_ENVVARS") -load("//cc/private/toolchain:lib_cc_configure.bzl", _escape_string = "escape_string") +load("//cc/private/toolchain:lib_cc_configure.bzl", _escape_string = "escape_string", _get_cpu_value = "get_cpu_value") load("//cc/private/toolchain:windows_cc_configure.bzl", _find_vc_path = "find_vc_path", _setup_vc_env_vars = "setup_vc_env_vars") MSVC_ENVVARS = _MSVC_ENVVARS @@ -22,3 +22,4 @@ MSVC_ENVVARS = _MSVC_ENVVARS find_vc_path = _find_vc_path setup_vc_env_vars = _setup_vc_env_vars escape_string = _escape_string +get_cpu_value = _get_cpu_value