Add conlyopts and cxxopts attributes to cc rules#23792
Add conlyopts and cxxopts attributes to cc rules#23792keith wants to merge 2 commits intobazelbuild:masterfrom
Conversation
The inability to pass C or C++ specific compiler flags to targets that contain a mix of those sources is a common sticking point for new users. These mirror the global `--conlyopt` and `--cxxopt` flags but at the target level. Fixes bazelbuild#22041
|
Thank you! I'm not familiar enough with Bazel to review this, but this would solve a ton of problems with Bazel that prevent BoringSSL from using it effectively. We support many build systems, and issue alone, due to all the problems it causes down the line, is probably singlehandedly the reason why it is the most expensive build system for us to support right now. E.g. we'd also be able to enable |
|
@bazel-io fork 7.4.0 |
|
LGTM. I am extremely supportive. |
|
@keith: could you add a RELNOTES line to the PR description? I'll attach it during import. |
|
done! |
|
FTR, this is breaking Google-internal tests because some other code is calling Could you perhaps make the new param optional? |
|
made it optional |
bazelbuild/bazel#23792 is available in Bazel 7.4.0 or later. [0] has long set a minimum Bazel version of Bazel 7 and, as of [1], Envoy has since caught up. We should be able to rely on this now, and remove the workaround. This doesn't enable parse_headers, but clears the Bazel blocker. Update-Note: BoringSSL now requires Bazel 7.4.0 or later. [0] https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md [1] envoyproxy/envoy#41209 Bug: 399387924 Change-Id: Icf2278d9fe8f0f38f353ce87dd227bd4bf0ac95c Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/76787 Commit-Queue: David Benjamin <davidben@google.com> Auto-Submit: David Benjamin <davidben@google.com> Reviewed-by: Adam Langley <agl@google.com>
The inability to pass C or C++ specific compiler flags to targets that
contain a mix of those sources is a common sticking point for new users.
These mirror the global
--conlyoptand--cxxoptflags but at thetarget level.
Fixes #22041
RELNOTES: Add conlyopts and cxxopts attributes to cc rules