Change where the debug flags are added to ensure they come after the default -O3 typically added by Python

(cherry picked from commit 3499ed6ac9)
This commit is contained in:
Robin Dunn
2019-05-20 20:42:50 -07:00
parent 8f6580eeb1
commit 882b764bef

View File

@@ -322,8 +322,8 @@ def configure(conf):
# And if --debug is set turn on more detailed debug info and turn off optimization
if conf.env.debug:
conf.env.CFLAGS_WXPY.extend(['-ggdb', '-O0'])
conf.env.CXXFLAGS_WXPY.extend(['-ggdb', '-O0'])
for flags in [conf.env.CFLAGS_PYEXT, conf.env.CXXFLAGS_PYEXT]:
flags.extend(['-ggdb', '-O0'])
# Remove some compile flags we don't care about, ones that we may be
# replacing ourselves anyway, or ones which may have duplicates.