From b96ca297634becaec06123b21a2ba7eab384418a Mon Sep 17 00:00:00 2001 From: Googler Date: Mon, 7 Oct 2024 08:23:48 -0700 Subject: [PATCH] Directly exposing functions in toolchain_config_utils.bzl setup_vc_env_vars should accepts more parameters than the wrapper previously allowed. PiperOrigin-RevId: 683192260 Change-Id: Ie6063e0706640856e0f4c9dce3e1f4e8fe1ec9e9 --- cc/toolchains/toolchain_config_utils.bzl | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/cc/toolchains/toolchain_config_utils.bzl b/cc/toolchains/toolchain_config_utils.bzl index 82b3ded2..48e52ec7 100644 --- a/cc/toolchains/toolchain_config_utils.bzl +++ b/cc/toolchains/toolchain_config_utils.bzl @@ -19,11 +19,6 @@ load("//cc/private/toolchain:windows_cc_configure.bzl", _find_vc_path = "find_vc MSVC_ENVVARS = _MSVC_ENVVARS -def find_vc_path(repository_ctx): - return _find_vc_path(repository_ctx) - -def setup_vc_env_vars(repository_ctx): - return _setup_vc_env_vars(repository_ctx) - -def escape_string(string): - return _escape_string(string) +find_vc_path = _find_vc_path +setup_vc_env_vars = _setup_vc_env_vars +escape_string = _escape_string