Skip to content

Handle PIC/NOPIC correctly in establish_cc_info - #4131

Merged
UebelAndre merged 2 commits into
bazelbuild:mainfrom
jakos-sec:pic-support
Jul 27, 2026
Merged

Handle PIC/NOPIC correctly in establish_cc_info#4131
UebelAndre merged 2 commits into
bazelbuild:mainfrom
jakos-sec:pic-support

Conversation

@jakos-sec

Copy link
Copy Markdown
Contributor

This change determines whether to use pic_static_library or static_library in cc_common.create_library_to_link based on the should_use_pic helper. It also updates the unit tests to expect only one of the libraries depending on the configuration.

@krasimirgg
krasimirgg self-requested a review July 7, 2026 09:14
@krasimirgg
krasimirgg enabled auto-merge July 7, 2026 09:34

@krasimirgg krasimirgg left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

auto-merge was automatically disabled July 7, 2026 09:37

Head branch was pushed to by a user without write access

This change determines whether to use pic_static_library or static_library
in cc_common.create_library_to_link based on the should_use_pic helper.
It also updates the unit tests to expect only one of the libraries depending
on the configuration.
@krasimirgg
krasimirgg enabled auto-merge July 7, 2026 11:29
@krasimirgg
krasimirgg added this pull request to the merge queue Jul 7, 2026
@krasimirgg
krasimirgg removed this pull request from the merge queue due to a manual request Jul 7, 2026
@UebelAndre
UebelAndre added this pull request to the merge queue Jul 27, 2026
@UebelAndre
UebelAndre removed this pull request from the merge queue due to a manual request Jul 27, 2026
@UebelAndre
UebelAndre enabled auto-merge July 27, 2026 15:11
@UebelAndre
UebelAndre added this pull request to the merge queue Jul 27, 2026
Merged via the queue into bazelbuild:main with commit 6503de2 Jul 27, 2026
3 checks passed
@jakos-sec
jakos-sec deleted the pic-support branch July 28, 2026 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants