embree: Sync build flags with master

Fixes Android ARM build.
These flags were added in master with 3f6ed10a5d.
This commit is contained in:
Rémi Verschelde 2022-12-15 13:52:40 +01:00
parent 6963ba631e
commit 4d8b9be48d
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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