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

Make CMake always build test protos into a static library #16251

Closed
wants to merge 0 commits into from

Conversation

copybara-service[bot]
Copy link

Make CMake always build test protos into a static library

When building with -Dprotobuf_BUILD_SHARED_LIBS=ON, we currently put all test
protos into their own shared library. PR #15887 seems to be pushing us over a
limit on the number of exported symbols so that this library no longer links
successfully, though.

This change fixes that problem by always building the test protos into a static
library. This should be fine since it's purely for testing and not meant to be
installed. The only things that depend on it are executables, so we don't need
to worry about ODR violations.

@copybara-service copybara-service bot force-pushed the test_617666678 branch 5 times, most recently from 05ce103 to b028398 Compare March 21, 2024 19:16
@copybara-service copybara-service bot closed this Mar 21, 2024
@copybara-service copybara-service bot deleted the test_617666678 branch March 21, 2024 19:36
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.

0 participants