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
docs: GNU symbol visibility option #994
base: main
Are you sure you want to change the base?
docs: GNU symbol visibility option #994
Conversation
2e7b2d2
to
76d8540
Compare
`CMake option <https://scikit-build.readthedocs.io/en/latest/usage.html#cmake-configure-options>`_ | ||
or | ||
`setup.py option <https://scikit-build.readthedocs.io/en/latest/usage.html#scikit-build-options>`_. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that for Python >= 3.9, setting the option `SKBUILD_GNU_SKIP_LOCAL_SYMBOL_EXPORT_OVERRIDE` to `ON` allow to ... |
It would be nice to further improve to provide some historical contest based on the summary available at #703 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a little more detail as to how this works and on what systems.
76d8540
to
a98311f
Compare
06ab36d
to
2410b1c
Compare
for more information, see https://pre-commit.ci
Codecov Report
@@ Coverage Diff @@
## main #994 +/- ##
=======================================
Coverage 86.26% 86.26%
=======================================
Files 33 33
Lines 1587 1587
Branches 351 351
=======================================
Hits 1369 1369
Misses 155 155
Partials 63 63 |
Controlling exported symbol visibility | ||
-------------------------------------- | ||
|
||
When using a GNU based compiler on Linux, scikit-build will reduce the binary size by removing all the native exported methods. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is part of PythonExtensions, not all of scikit-build, right? Most or all pybind11 and nanobind projects do not use PythonExtensions. Also, FindPythonInterp and FindPythonLibs is being removed (sort-of) from CMake 3.27; users using FindPython won't be affected by this variable either, I believe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jcfr is there another caveot I am missing as to when this would be used?
Address issue #856