diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2018-04-30 17:12:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-30 17:12:13 +0200 |
commit | 813acef973a710c55bc157b7b37039de6e95dff2 (patch) | |
tree | 5f8d915e4f2c6f88a27517a97ce284388e598c47 /modules/gdnative | |
parent | 1ff89b547af735e833f0703813c6c7869b68a35e (diff) | |
parent | cee5117d3b1cc3ea54dee51e67d1e33e4577cdde (diff) |
Merge pull request #18523 from hpvb/fix-clang-lto
Fix lto builds on clang compilers
Diffstat (limited to 'modules/gdnative')
-rw-r--r-- | modules/gdnative/SCsub | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/gdnative/SCsub b/modules/gdnative/SCsub index acfb83bc10..8654ef3d82 100644 --- a/modules/gdnative/SCsub +++ b/modules/gdnative/SCsub @@ -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']) |