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 our Python source wheel use the version script to restruct symbol visibility. #18467

Closed
wants to merge 1 commit into from

Conversation

copybara-service[bot]
Copy link

Make our Python source wheel use the version script to restruct symbol visibility.

We generally want our extension module to hide all symbols except a single entry point, PyInit__message(). We accomplish this through a version_script.lds, which instructs the linker to hide all symbols except our single entry point.

Currently, only our Bazel-based build is using version_script.lds. This CL makes our Python source package also use version_script.lds, so that it can produce binary wheel that are more similar to the Bazel-built ones that we release.

…l visibility.

We generally want our extension module to hide all symbols except a single entry point, `PyInit__message()`.  We accomplish this through a `version_script.lds`, which instructs the linker to hide all symbols except our single entry point.

Currently, only our Bazel-based build is using `version_script.lds`.  This CL makes our Python source package also use `version_script.lds`, so that it can produce binary wheel that are more similar to the Bazel-built ones that we release.

PiperOrigin-RevId: 645445353
Copy link

Auto-closing Copybara pull request

@github-actions github-actions bot closed this Sep 29, 2024
@github-actions github-actions bot deleted the test_645445353 branch September 29, 2024 10:01
@h-vetinari
Copy link
Contributor

Pity that these get closed so quickly. It'd be very helpful to have as explained in #12927. We're already shipping the predecessor PR (#17207) in our distribution, currently based on v27.5.

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.

None yet

2 participants