summaryrefslogtreecommitdiff
path: root/Android.common.mk
diff options
context:
space:
mode:
authorEmil Velikov <emil.velikov@collabora.com>2017-11-24 14:25:06 +0000
committerEmil Velikov <emil.l.velikov@gmail.com>2018-08-08 13:45:55 +0100
commit32aa7ff647be3c45317e66ca611443d21df52f93 (patch)
treedf8910e8b8171952ad1203115588e8301770b4ff /Android.common.mk
parent315c46cfdc3dbd4d51b74ab26df693725e947724 (diff)
Android: copy -fno*math* options from the autotools build
Add -fno-math-errno and -fno-trapping-math to the build. Mesa does not depend on the functionality provided, thus this should result in slightly faster code and smaller binaries. Cc: Tapani Pälli <tapani.palli@intel.com> Cc: Rob Herring <robh@kernel.org> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Acked-by: Tapani Pälli <tapani.palli@intel.com>
Diffstat (limited to 'Android.common.mk')
-rw-r--r--Android.common.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/Android.common.mk b/Android.common.mk
index 619b216b63b..aa1b266a393 100644
--- a/Android.common.mk
+++ b/Android.common.mk
@@ -76,6 +76,8 @@ LOCAL_CFLAGS += \
-DMAJOR_IN_SYSMACROS \
-DVK_USE_PLATFORM_ANDROID_KHR \
-fvisibility=hidden \
+ -fno-math-errno \
+ -fno-trapping-math \
-Wno-sign-compare
LOCAL_CPPFLAGS += \