summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Hilbrunner <mhilbrunner@users.noreply.github.com>2018-04-30 17:12:13 +0200
committerGitHub <noreply@github.com>2018-04-30 17:12:13 +0200
commit813acef973a710c55bc157b7b37039de6e95dff2 (patch)
tree5f8d915e4f2c6f88a27517a97ce284388e598c47
parent1ff89b547af735e833f0703813c6c7869b68a35e (diff)
parentcee5117d3b1cc3ea54dee51e67d1e33e4577cdde (diff)
Merge pull request #18523 from hpvb/fix-clang-lto
Fix lto builds on clang compilers
-rw-r--r--modules/gdnative/SCsub4
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'])