Merge pull request #53245 from JFonS/occ_fixes2

Occlusion culling fixes
This commit is contained in:
Rémi Verschelde
2021-09-30 19:58:05 +02:00
committed by GitHub
3 changed files with 89 additions and 59 deletions

View File

@ -87,6 +87,20 @@ if env["builtin_embree"]:
# Embree needs those, it will automatically use SSE2NEON in ARM
env_thirdparty.Append(CPPDEFINES=["__SSE2__", "__SSE__"])
if not env.msvc:
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