pybind11/pybind11
Antony Lee b11ff912a6
fix(setup =_helpers): don't add -g0 CFLAGS sets -g (#3436)
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.
2021-11-08 16:27:32 -05:00
..
__init__.py maint(precommit): Apply isort (#3195) 2021-08-13 12:37:05 -04:00
__main__.py maint(precommit): Apply isort (#3195) 2021-08-13 12:37:05 -04:00
_version.py chore: get back to work after 2.8.1 2021-10-27 15:15:11 -07:00
_version.pyi maint(precommit): Apply isort (#3195) 2021-08-13 12:37:05 -04:00
commands.py maint(precommit): Apply isort (#3195) 2021-08-13 12:37:05 -04:00
py.typed feat: typing support for helpers (#2588) 2020-10-14 14:08:41 -04:00
setup_helpers.py fix(setup =_helpers): don't add -g0 CFLAGS sets -g (#3436) 2021-11-08 16:27:32 -05:00
setup_helpers.pyi maint(precommit): Apply isort (#3195) 2021-08-13 12:37:05 -04:00