mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Add -mstackrealign to avoid crashes with SSE instructions on pre-K x86 devices.
bug: 16213554 Change-Id: Icd67ed4fd57fcc5f5bf8039b7892d0d446210247
This commit is contained in:
parent
05c70484a2
commit
81a48d47d1
@ -34,6 +34,12 @@ LOCAL_CFLAGS += -Werror -Wall -Wextra -Weffc++ -Wformat=2 -Wcast-qual -Wcast-ali
|
||||
# To suppress compiler warnings for unused variables/functions used for debug features etc.
|
||||
LOCAL_CFLAGS += -Wno-unused-parameter -Wno-unused-function
|
||||
|
||||
# HACK: -mstackrealign is required for x86 builds running on pre-KitKat devices to avoid crashes
|
||||
# with SSE instructions.
|
||||
ifeq ($(TARGET_ARCH), x86)
|
||||
LOCAL_CFLAGS += -mstackrealign
|
||||
endif # x86
|
||||
|
||||
include $(LOCAL_PATH)/NativeFileList.mk
|
||||
|
||||
LOCAL_SRC_FILES := \
|
||||
|
Loading…
Reference in New Issue
Block a user