diff --git a/modules/gdnative/SCsub b/modules/gdnative/SCsub index c92c3f30a..528bd34f3 100644 --- a/modules/gdnative/SCsub +++ b/modules/gdnative/SCsub @@ -165,6 +165,9 @@ _, gensource = gdn_env.Command(['include/gdnative_api_struct.gen.h', 'gdnative_a 'gdnative_api.json', build_gdnative_api_struct) gdn_env.add_source_files(env.modules_sources, [gensource]) +# Workaround GCC bug 79085 affecting GCC < 8.1 on armv7hl +env_gdnative.Append(CCFLAGS="-O3 -fno-tree-fre -fno-tree-dominator-opts -fno-tree-copy-prop -fno-tree-ccp -fno-code-hoisting -fno-tree-pre -fno-tree-vrp".split()) + env.use_ptrcall = True