Android: copy -fno*math* options from the autotools build
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 24 Nov 2017 14:25:06 +0000 (14:25 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 8 Aug 2018 12:45:55 +0000 (13:45 +0100)
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>
Android.common.mk

index 619b216b63b2a880583f4465ebb635ba87b97c14..aa1b266a393266293b3aba6606a390107e038d3a 100644 (file)
@@ -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 += \