Skip to content

Commit

Permalink
Flip cc_test to use the Starlark version.
Browse files Browse the repository at this point in the history
NOTE: This does not change the use of platform/toolchains based cc_test.

`env` attribute now handles location / makevar expansion.

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: #15268
PiperOrigin-RevId: 445938132
  • Loading branch information
trybka authored and copybara-github committed May 2, 2022
1 parent 27c0896 commit 3948d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/starlark/builtins_bzl/common/exports.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,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,
"-proto_lang_toolchain": proto_lang_toolchain,
}
Expand Down

0 comments on commit 3948d5f

Please sign in to comment.