mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 14:45:12 +00:00
b11ff912a6
On Unix, setuptools prepends $CFLAGS and $CPPFLAGS to the compiler flags (they always come before extra_compile_args and anything else; see distutils.sysconfig.customize_compiler). In practice, the environment variables are useful e.g. to quickly generate a debug build (e.g. by setting CFLAGS=-g), but Pybind11Extension currently unconditionally overwrites this with -g0. Instead, check the environment variables and only insert -g0 if not overridden by them. |
||
---|---|---|
.. | ||
__init__.py | ||
__main__.py | ||
_version.py | ||
_version.pyi | ||
commands.py | ||
py.typed | ||
setup_helpers.py | ||
setup_helpers.pyi |