Skip to content

Handle PIC/NOPIC correctly in establish_cc_info#4131

Open
jakos-sec wants to merge 1 commit into
bazelbuild:mainfrom
jakos-sec:pic-support
Open

Handle PIC/NOPIC correctly in establish_cc_info#4131
jakos-sec wants to merge 1 commit into
bazelbuild:mainfrom
jakos-sec:pic-support

Conversation

@jakos-sec

Copy link
Copy Markdown

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
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.

2 participants