diff options
| author | Hein-Pieter van Braam | 2018-04-30 00:52:42 +0200 |
|---|---|---|
| committer | Hein-Pieter van Braam | 2018-04-30 00:52:42 +0200 |
| commit | 8e301c69cb86a980a6702f8a0ab801f7952aa30b (patch) | |
| tree | 1bc162a2cba26269119a58c83d5e76ba33ac2bd9 /modules | |
| parent | 3ee4d6af2e7a784c5dfc7d65daf0cef5e72e9d78 (diff) | |
| download | godot-8e301c69cb86a980a6702f8a0ab801f7952aa30b.tar.gz godot-8e301c69cb86a980a6702f8a0ab801f7952aa30b.tar.zst godot-8e301c69cb86a980a6702f8a0ab801f7952aa30b.zip | |
Fix lto builds on clang compilers
This needs to go to master also
Diffstat (limited to 'modules')
| -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 c92c3f30a..cc2ce58d5 100644 --- a/modules/gdnative/SCsub +++ b/modules/gdnative/SCsub @@ -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']) |
