diff --git a/modules/raycast/SCsub b/modules/raycast/SCsub index 84ab1335881..3c88e159bc9 100644 --- a/modules/raycast/SCsub +++ b/modules/raycast/SCsub @@ -77,6 +77,8 @@ env_embree.Append( if not env_embree.msvc: env_embree.Append(CPPFLAGS=["-mxsave"]) + if env["platform"] == "windows": + env_embree.Append(CPPFLAGS=["-mstackrealign"]) if env["platform"] == "windows": if env.msvc: