|
15 | 15 | """Semantics for Bazel cc rules"""
|
16 | 16 |
|
17 | 17 | load(":common/cc/cc_helper.bzl", "cc_helper")
|
18 |
| -load(":common/cc/cc_common.bzl", "cc_common") |
19 | 18 |
|
20 | 19 | def _get_proto_aspects():
|
21 | 20 | return []
|
@@ -152,10 +151,6 @@ def _check_can_use_implementation_deps(ctx):
|
152 | 151 | if (not experimental_cc_implementation_deps and ctx.attr.implementation_deps):
|
153 | 152 | fail("requires --experimental_cc_implementation_deps", attr = "implementation_deps")
|
154 | 153 |
|
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 |
| - |
159 | 154 | def _get_linkstatic_default(ctx):
|
160 | 155 | if ctx.attr._is_test:
|
161 | 156 | # By default Tests do not link statically. Except on Windows.
|
@@ -205,7 +200,6 @@ semantics = struct(
|
205 | 200 | get_grep_includes = _get_grep_includes,
|
206 | 201 | get_implementation_deps_allowed_attr = _get_implementation_deps_allowed_attr,
|
207 | 202 | check_can_use_implementation_deps = _check_can_use_implementation_deps,
|
208 |
| - check_experimental_cc_shared_library = _check_experimental_cc_shared_library, |
209 | 203 | get_linkstatic_default = _get_linkstatic_default,
|
210 | 204 | get_runtimes_toolchain = _get_runtimes_toolchain,
|
211 | 205 | get_test_malloc_attr = _get_test_malloc_attr,
|
|
0 commit comments