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>tags/18.3-branchpoint
@@ -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 += \ |