From 32aa7ff647be3c45317e66ca611443d21df52f93 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 24 Nov 2017 14:25:06 +0000 Subject: [PATCH] Android: copy -fno*math* options from the autotools build MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Cc: Rob Herring Signed-off-by: Emil Velikov Acked-by: Tapani Pälli --- Android.common.mk | 2 ++ 1 file changed, 2 insertions(+) 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 += \ -- 2.30.2