From 212fca0c50101ab981930d2823d244ebbfd1516a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Wed, 5 Apr 2017 22:16:04 +0200 Subject: [PATCH] Fix crash on Android-x86 --- platform/android/detect.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/android/detect.py b/platform/android/detect.py index 2522a55aa13..31551a5bcb4 100644 --- a/platform/android/detect.py +++ b/platform/android/detect.py @@ -175,6 +175,8 @@ def configure(env): if env['android_arch'] == 'x86': can_vectorize = True target_opts = ['-target', 'i686-none-linux-android'] + # The NDK adds this if targeting API < 21, so we can drop it when Godot targets it at least + env.Append(CPPFLAGS=['-mstackrealign']) elif env["android_arch"] == "armv6": can_vectorize = False target_opts = ['-target', 'armv6-none-linux-androideabi']