Only define certain debug flags when dist_target is auto
Fixes issue when cross compiling using MinGW
This commit is contained in:
parent
d76efc97a3
commit
808ee5d139
5
wscript
5
wscript
@ -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':
|
||||||
|
Loading…
Reference in New Issue
Block a user