diff --git a/setup.py b/setup.py index e6cb253b8..046faf7fc 100644 --- a/setup.py +++ b/setup.py @@ -334,7 +334,7 @@ class build_ext_debug(_build_ext): lt_ext.extra_compile_args.remove('-DNDEBUG') lt_ext.extra_compile_args.remove('-O2') lt_ext.extra_compile_args.append('-g') - remove_from_cflags(["-DNDEBUG"]) + remove_from_cflags(["-DNDEBUG", "-O2"]) return _build_ext.run(self) class clean_plugins(cmd.Command):