Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ def get_exts_for(name):
# sure we explicitly set this for normal builds, and explicitly
# _unset_ it for debug builds in case the CFLAGS from sysconfig
# include -DNDEBUG
+ (["-DNDEBUG"] if not debug_compile_args else ["-UNDEBUG"])
+ (["-DNDEBUG"] if COMPILE_MODE.lower() in ("release", "minsizerel") else ["-UNDEBUG"])
+ ["-D_POSIX_C_SOURCE=200809L", "-std=c11"]
+ fast_build_args
if CURRENT_OS != "Windows"
Expand Down
Loading