From a79bb3add2732ebb0ae73f8808be828e05cf3f72 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 24 May 2017 07:47:11 +0530 Subject: [PATCH] Correct the DEBUG define --- setup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.py b/setup.py index cbbbd5f3a..e05a5054b 100755 --- a/setup.py +++ b/setup.py @@ -115,9 +115,9 @@ def init_env(debug=False, sanitize=False, native_optimizations=True): cflags = os.environ.get( 'OVERRIDE_CFLAGS', ( '-Wextra -Wno-missing-field-initializers -Wall -std=c99 -D_XOPEN_SOURCE=700' - ' -pedantic-errors -Werror {} {} -DNDEBUG -fwrapv {} {} -pipe {}' + ' -pedantic-errors -Werror {} {} -D{}DEBUG -fwrapv {} {} -pipe {}' ).format( - optimize, ' '.join(sanitize_args), stack_protector, missing_braces, '-march=native' + optimize, ' '.join(sanitize_args), ('' if debug else 'N'), stack_protector, missing_braces, '-march=native' if native_optimizations else '' ) )