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' ]
if opt.backtrace:
if platform != 'darwin' and not is_clang:
debug_flags = [ '-rdynamic' ]
if opt.dist_target == 'auto':
if platform != 'darwin' and not is_clang:
debug_flags = [ '-rdynamic' ]
# Autodetect
if opt.dist_target == 'auto':