summaryrefslogtreecommitdiffstats
path: root/Android.common.mk
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-11-24 14:25:06 +0000
committerEmil Velikov <[email protected]>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 <[email protected]> Cc: Rob Herring <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Acked-by: Tapani Pälli <[email protected]>
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 += \