You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chore(profiling): explicitly set or clear NDEBUG for memalloc extension (#13218)
The memalloc C extension has debug assert statements. We want them off
by default in case they guard a costly call we wouldn't normally want to
happen. Depending on how the CPython interpreter running setup.py was
built, we may already get -DNDEBUG via the CFLAGS from sysconfig, which
disables asserts. See the [setuptools
docs](https://setuptools.pypa.io/en/latest/userguide/ext_modules.html#compiler-and-linker-options).
But rather than rely on that, make sure that asserts
are explicitly disabled for normal builds and explicitly enabled for
debug builds.
0 commit comments