Skip to content
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 conlyopts and cxxopts attributes to cc rules #23904

Conversation

keith
Copy link
Member

@keith keith commented Oct 8, 2024

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 #22041

RELNOTES: Add conlyopts and cxxopts attributes to cc rules

Closes #23840

PiperOrigin-RevId: 682144094
Change-Id: I0fe8b728c493652d875ce6a6dd2a9989c36b1f24

(cherry picked from commit 5854788)

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

RELNOTES: Add conlyopts and cxxopts attributes to cc rules

Closes bazelbuild#23840

PiperOrigin-RevId: 682144094
Change-Id: I0fe8b728c493652d875ce6a6dd2a9989c36b1f24

(cherry picked from commit 5854788)
@keith keith requested a review from a team as a code owner October 8, 2024 22:04
@github-actions github-actions bot added awaiting-review PR is awaiting review from an assigned reviewer team-Rules-CPP Issues for C++ rules labels Oct 8, 2024
@iancha1992 iancha1992 requested a review from comius October 8, 2024 22:35
@iancha1992 iancha1992 added this pull request to the merge queue Oct 9, 2024
@cgrindel
Copy link

cgrindel commented Oct 9, 2024

@keith Does this PR add the attributes to objc_library, as well?

@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 9, 2024
@keith
Copy link
Member Author

keith commented Oct 9, 2024

@keith Does this PR add the attributes to objc_library, as well?

No. At head the logic for that is a bit different so I have touched it

@meteorcloudy meteorcloudy added this pull request to the merge queue Oct 9, 2024
Merged via the queue into bazelbuild:release-7.4.0 with commit 1ee37c1 Oct 9, 2024
51 checks passed
@github-actions github-actions bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
team-Rules-CPP Issues for C++ rules
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants