From 8e301c69cb86a980a6702f8a0ab801f7952aa30b Mon Sep 17 00:00:00 2001 From: Hein-Pieter van Braam Date: Mon, 30 Apr 2018 00:52:42 +0200 Subject: [PATCH] Fix lto builds on clang compilers This needs to go to master also --- modules/gdnative/SCsub | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/gdnative/SCsub b/modules/gdnative/SCsub index c92c3f30a2b..cc2ce58d5ec 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'])