Make sure cc_shared_library is guarded by flag

The --experimental_cc_shared_library used to block API methods
that were needed in the cc_shared_library implementation. However, these
methods have been made freely available to everyone so that people can start
migrating to the new API.

With that change, the cc_shared_library has become free to use unless we block
it with the method call added in this CL.

RELNOTES:none
PiperOrigin-RevId: 297127873
Change-Id: I103fe7724b9c4956a5bee8bed0f6d074a6e453f1
This commit is contained in:
Googler 2020-02-25 08:58:25 -08:00 committed by Copybara-Service
parent 286f85b5a2
commit 52cd711ab7
1 changed files with 1 additions and 0 deletions

View File

@ -227,6 +227,7 @@ def _same_package_or_above(label_a, label_b):
return True
def _cc_shared_library_impl(ctx):
cc_common.check_experimental_cc_shared_library()
cc_toolchain = find_cc_toolchain(ctx)
feature_configuration = cc_common.configure_features(
ctx = ctx,