From b4b95c942376c06764127fc21ae450b51cfc8b5c Mon Sep 17 00:00:00 2001 From: John Garland Date: Sun, 24 Jan 2010 02:23:57 +0000 Subject: [PATCH] Don't opitimise when doing a debug build. --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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):