From 4d8b9be48d90a64db4027c0b5ad55b381f865f28 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 15 Dec 2022 13:52:40 +0100 Subject: [PATCH] embree: Sync build flags with master Fixes Android ARM build. These flags were added in master with 3f6ed10a5d6fcbccf9e3ad0c3504522691ac40a8. --- modules/raycast/SCsub | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/modules/raycast/SCsub b/modules/raycast/SCsub index 10b423b06a8..27d6264e0e8 100644 --- a/modules/raycast/SCsub +++ b/modules/raycast/SCsub @@ -88,6 +88,21 @@ if env["builtin_embree"]: # Embree needs those, it will automatically use SSE2NEON in ARM env_thirdparty.Append(CPPDEFINES=["__SSE2__", "__SSE__"]) + if not env.msvc: + # Flags synced with upstream gnu.cmake. + env_thirdparty.Append( + CPPFLAGS=[ + "-fno-strict-overflow", + "-fno-delete-null-pointer-checks", + "-fwrapv", + "-fsigned-char", + "-fno-strict-aliasing", + "-fno-tree-vectorize", + "-fvisibility=hidden", + "-fvisibility-inlines-hidden", + ] + ) + env.modules_sources += thirdparty_obj