embree: Sync build flags with master
Fixes Android ARM build.
These flags were added in master with 3f6ed10a5d
.
This commit is contained in:
parent
6963ba631e
commit
4d8b9be48d
1 changed files with 15 additions and 0 deletions
|
@ -88,6 +88,21 @@ if env["builtin_embree"]:
|
||||||
# Embree needs those, it will automatically use SSE2NEON in ARM
|
# Embree needs those, it will automatically use SSE2NEON in ARM
|
||||||
env_thirdparty.Append(CPPDEFINES=["__SSE2__", "__SSE__"])
|
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
|
env.modules_sources += thirdparty_obj
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue