Remove debug symbols from Python extension when not in debug mode

This commit is contained in:
Ray Speth 2012-06-05 19:56:24 +00:00
parent 96114edb46
commit 3ffaaeae4f

View file

@ -14,6 +14,9 @@ localenv.Append(CPPPATH=[gcv('INCLUDEPY'), env['python_array_include']],
if '-Wstrict-prototypes' in localenv['CPPFLAGS']:
localenv['CPPFLAGS'].remove('-Wstrict-prototypes')
if '-g' in localenv['CPPFLAGS'] and not env['debug']:
localenv['CPPFLAGS'].remove('-g')
if localenv['OS'] == 'Windows':
localenv.Append(LIBPATH=pjoin(gcv('prefix'), 'libs'))