-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[7.4.0] Add experimental cc_static_library
rule
#23392
Conversation
RELNOTES: The new `cc_static_library` rule produces a static library that bundles given targets and all their transitive dependencies. It has to be enabled via `--experimental_cc_static_library`. Implements https://docs.google.com/document/d/1jN0LUmp6_-rV9_f-Chx-Cs6t_5iOm3fziOklzBGjGIg/edit Fixes bazelbuild#1920 Closes bazelbuild#16954. PiperOrigin-RevId: 661382285 Change-Id: I972afd1a38d50ab4e48d9b3c189f1662b0096bbf
84725e5
[7.4.0-error]: name 'cc_static_library' is not defined. By the way, I've added the --experimental_cc_static_library option |
How are you trying to use it? Could you post a full BUILD file snippet? |
I just use cc_static_library like cc_library, not load anything else. Besides, the official documents about cc_static_library doesn't say what to load. |
@dtera I can't reproduce this with 7.4.0. Are you certain you are using the correct version of Bazel? |
Yes, the version is in .bazelversion, and I checked with 'bazel --version'. Can you give me a complete example, I'm using WORKSPACE instead of Bzlmod. |
You don't. Could you share a zip or git repo with a complete reproducer? |
https://github.com/dtera/bazel_demo.git |
That's the case for all rules natively provided by Bazel: to reference them in a |
RELNOTES: The new
cc_static_library
rule produces a static library that bundles given targets and all their transitive dependencies. It has to be enabled via--experimental_cc_static_library
.Implements https://docs.google.com/document/d/1jN0LUmp6_-rV9_f-Chx-Cs6t_5iOm3fziOklzBGjGIg/edit
Fixes #1920
Closes #16954.
PiperOrigin-RevId: 661382285
Change-Id: I972afd1a38d50ab4e48d9b3c189f1662b0096bbf
Closes #23192