Remove debug symbols from Python extension when not in debug mode
This commit is contained in:
parent
96114edb46
commit
3ffaaeae4f
1 changed files with 3 additions and 0 deletions
|
|
@ -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'))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue