Commit 50d9813
authored
Add explicit
### What does this PR do?
Adds an explicit `load` for `cc_static_library` from `@rules_cc//cc:cc_static_library.bzl` to `rtloader/BUILD.bazel`.
### Motivation
In Bazel 9, `cc_static_library` is no longer auto-loaded from Bazel's native namespace:
```
ERROR: Traceback (most recent call last):
File "rtloader/BUILD.bazel", line 77, column 18, in <toplevel>
cc_static_library(
File "/virtual_builtins_bzl/bazel/exports.bzl", line 40, column 9, in _removed_rule_failure
Error in fail:
This rule has been removed from Bazel. Please add a `load()` statement for it.
This can also be done automatically by running:
buildifier --lint=fix <path-to-BUILD-or-bzl-file>
```
The rule was migrated out of Bazel's built-ins into `rules_cc`, but `cc_static_library` was not added to its `defs.bzl`, apparently by omission; it must therefore be loaded explicitly from `@rules_cc//cc:cc_static_library.bzl`.
The `load` is transparent on Bazel 8, where the rule would still be auto-loaded, so this change is safe to land before the Bazel 9 upgrade.
### Describe how you validated your changes
`bazel test //rtloader/...` passes.
Co-authored-by: regis.desgroppes <[email protected]>cc_static_library import for Bazel 9 (#47982)1 parent a7599ec commit 50d9813
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
0 commit comments