Skip to content

Commit 02ad119

Browse files
oquenchilcopybara-github
authored andcommitted
Remove experimental flag from cc_shared_library
RELNOTES:cc_shared_library is no longer experimental, see #16709 for details PiperOrigin-RevId: 516573037 Change-Id: I0c30f9f60e731e9a91035f78ef084a1c5157c011
1 parent 8be2180 commit 02ad119

File tree

3 files changed

+0
-9
lines changed

3 files changed

+0
-9
lines changed

src/main/starlark/builtins_bzl/common/cc/experimental_cc_shared_library.bzl

-2
Original file line numberDiff line numberDiff line change
@@ -477,8 +477,6 @@ def _get_deps(ctx):
477477
return deps
478478

479479
def _cc_shared_library_impl(ctx):
480-
semantics.check_experimental_cc_shared_library(ctx)
481-
482480
if not cc_common.check_experimental_cc_shared_library():
483481
if len(ctx.attr.static_deps):
484482
fail(

src/main/starlark/builtins_bzl/common/cc/semantics.bzl

-6
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
"""Semantics for Bazel cc rules"""
1616

1717
load(":common/cc/cc_helper.bzl", "cc_helper")
18-
load(":common/cc/cc_common.bzl", "cc_common")
1918

2019
def _get_proto_aspects():
2120
return []
@@ -152,10 +151,6 @@ def _check_can_use_implementation_deps(ctx):
152151
if (not experimental_cc_implementation_deps and ctx.attr.implementation_deps):
153152
fail("requires --experimental_cc_implementation_deps", attr = "implementation_deps")
154153

155-
def _check_experimental_cc_shared_library(ctx):
156-
if not cc_common.check_experimental_cc_shared_library():
157-
fail("Pass --experimental_cc_shared_library to use cc_shared_library")
158-
159154
def _get_linkstatic_default(ctx):
160155
if ctx.attr._is_test:
161156
# By default Tests do not link statically. Except on Windows.
@@ -205,7 +200,6 @@ semantics = struct(
205200
get_grep_includes = _get_grep_includes,
206201
get_implementation_deps_allowed_attr = _get_implementation_deps_allowed_attr,
207202
check_can_use_implementation_deps = _check_can_use_implementation_deps,
208-
check_experimental_cc_shared_library = _check_experimental_cc_shared_library,
209203
get_linkstatic_default = _get_linkstatic_default,
210204
get_runtimes_toolchain = _get_runtimes_toolchain,
211205
get_test_malloc_attr = _get_test_malloc_attr,

src/main/starlark/tests/builtins_bzl/cc_builtin_tests.sh

-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ EOF
7070

7171
bazel $START_OPTS test --define=is_bazel=true --test_output=streamed \
7272
--experimental_cc_shared_library_debug \
73-
--experimental_cc_shared_library \
7473
//src/main/starlark/tests/builtins_bzl/cc/... || fail "expected success"
7574
}
7675

0 commit comments

Comments
 (0)