From ee0e3e141add82fbd4a93efdda3ac52e7c5f5c2a Mon Sep 17 00:00:00 2001 From: trybka Date: Thu, 21 Apr 2022 08:09:02 -0700 Subject: [PATCH] Flip cc_test to use the Starlark version. NOTE: This does not change the use of platform/toolchains based cc_test. RELNOTES: Switch cc_test implementation to Starlark. Note: cc_test will now link statically when _targeting_ Windows regardless of host platform (rather than always linking statically when Windows is the _host_). Additionally, the behavior of env_inherit differs--notably the inherited environment overrides the fixed environment. See: https://github.com/bazelbuild/bazel/issues/15268 PiperOrigin-RevId: 443380618 --- src/main/starlark/builtins_bzl/common/exports.bzl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/starlark/builtins_bzl/common/exports.bzl b/src/main/starlark/builtins_bzl/common/exports.bzl index 1b1a52e5021110..442c6ae1f93de0 100755 --- a/src/main/starlark/builtins_bzl/common/exports.bzl +++ b/src/main/starlark/builtins_bzl/common/exports.bzl @@ -52,7 +52,7 @@ exported_rules = { "+cc_shared_library": cc_shared_library, "+cc_shared_library_permissions": cc_shared_library_permissions, "+cc_binary": cc_binary, - "-cc_test": cc_test, + "+cc_test": cc_test, "-cc_library": cc_library, }