13
0

Only define certain debug flags when dist_target is auto

Fixes issue when cross compiling using MinGW
This commit is contained in:
Tim Mayberry 2013-09-04 19:56:14 +10:00
parent d76efc97a3
commit 808ee5d139

View File

@ -120,8 +120,9 @@ def set_compiler_flags (conf,opt):
debug_flags = [ '-pg' ] debug_flags = [ '-pg' ]
if opt.backtrace: if opt.backtrace:
if platform != 'darwin' and not is_clang: if opt.dist_target == 'auto':
debug_flags = [ '-rdynamic' ] if platform != 'darwin' and not is_clang:
debug_flags = [ '-rdynamic' ]
# Autodetect # Autodetect
if opt.dist_target == 'auto': if opt.dist_target == 'auto':