|
11 | 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
12 | 12 | # See the License for the specific language governing permissions and |
13 | 13 | # limitations under the License. |
14 | | -# LINT.IfChange(forked_exports) |
15 | 14 | """ |
16 | 15 | Utility functions for C++ rules that don't depend on cc_common. |
17 | 16 |
|
@@ -44,6 +43,8 @@ CPP_SOURCE_TYPE_HEADER = "HEADER" |
44 | 43 | CPP_SOURCE_TYPE_SOURCE = "SOURCE" |
45 | 44 | CPP_SOURCE_TYPE_CLIF_INPUT_PROTO = "CLIF_INPUT_PROTO" |
46 | 45 |
|
| 46 | +# LINT.IfChange(forked_exports) |
| 47 | + |
47 | 48 | CREATE_COMPILE_ACTION_API_ALLOWLISTED_PACKAGES = [("", "devtools/rust/cc_interop"), ("", "third_party/crubit"), ("", "tools/build_defs/clif")] |
48 | 49 |
|
49 | 50 | PRIVATE_STARLARKIFICATION_ALLOWLIST = [ |
@@ -87,6 +88,8 @@ PRIVATE_STARLARKIFICATION_ALLOWLIST = [ |
87 | 88 | ("", "javatests/com/google/devtools/grok/kythe"), |
88 | 89 | ] + CREATE_COMPILE_ACTION_API_ALLOWLISTED_PACKAGES |
89 | 90 |
|
| 91 | +# LINT.ThenChange(https://github.com/bazelbuild/bazel/blob/master/src/main/starlark/builtins_bzl/common/cc/cc_helper_internal.bzl:forked_exports) |
| 92 | + |
90 | 93 | _CC_SOURCE = [".cc", ".cpp", ".cxx", ".c++", ".C", ".cu", ".cl"] |
91 | 94 | _C_SOURCE = [".c"] |
92 | 95 | _OBJC_SOURCE = [".m"] |
@@ -335,8 +338,6 @@ def use_pic_for_dynamic_libs(cpp_config, feature_configuration): |
335 | 338 | return (cpp_config.force_pic() or |
336 | 339 | feature_configuration.is_enabled("supports_pic")) |
337 | 340 |
|
338 | | -# LINT.ThenChange(https://github.com/bazelbuild/bazel/blob/master/src/main/starlark/builtins_bzl/common/cc/cc_helper_internal.bzl:forked_exports) |
339 | | - |
340 | 341 | def get_relative_path(path_a, path_b): |
341 | 342 | if is_path_absolute(path_b): |
342 | 343 | return path_b |
|
0 commit comments