Fix lto builds on clang compilers
This needs to go to master also
This commit is contained in:
parent
3ee4d6af2e
commit
8e301c69cb
1 changed files with 2 additions and 2 deletions
|
@ -247,8 +247,8 @@ if ARGUMENTS.get('gdnative_wrapper', False):
|
|||
|
||||
if gd_wrapper_env['use_lto']:
|
||||
if not env.msvc:
|
||||
gd_wrapper_env.Append(CCFLAGS=['--no-lto'])
|
||||
gd_wrapper_env.Append(LINKFLAGS=['--no-lto'])
|
||||
gd_wrapper_env.Append(CCFLAGS=['-fno-lto'])
|
||||
gd_wrapper_env.Append(LINKFLAGS=['-fno-lto'])
|
||||
else:
|
||||
gd_wrapper_env.Append(CCFLAGS=['/GL-'])
|
||||
gd_wrapper_env.Append(LINKFLAGS=['/LTCG:OFF'])
|
||||
|
|
Loading…
Reference in a new issue