From 89237c89524590d38727ef24a7578e616c8e43bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Mon, 18 Jan 2021 18:28:11 +0100 Subject: [PATCH] Fix crash in lightmapper under MinGW-GCC Windows --- modules/raycast/SCsub | 2 ++ 1 file changed, 2 insertions(+) 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: