summaryrefslogtreecommitdiff
path: root/modules/raycast/SCsub
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-09-30 19:58:05 +0200
committerGitHub <noreply@github.com>2021-09-30 19:58:05 +0200
commit7e8385ff78e81b764fcb57eae68e964d190283eb (patch)
treebee8780250cc44d877271dd6f88bc5ce00854c2f /modules/raycast/SCsub
parentc370b4c4d06694401dda71e033286f5383f9e645 (diff)
parent3f6ed10a5d6fcbccf9e3ad0c3504522691ac40a8 (diff)
Merge pull request #53245 from JFonS/occ_fixes2
Occlusion culling fixes
Diffstat (limited to 'modules/raycast/SCsub')
-rw-r--r--modules/raycast/SCsub14
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/raycast/SCsub b/modules/raycast/SCsub
index 4820cf7608..ef4c598194 100644
--- a/modules/raycast/SCsub
+++ b/modules/raycast/SCsub
@@ -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