Merge pull request #18523 from hpvb/fix-clang-lto

Fix lto builds on clang compilers
This commit is contained in:
Max Hilbrunner 2018-04-30 17:12:13 +02:00 committed by GitHub
commit 813acef973
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -275,8 +275,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'])