Browse Source

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>
tags/18.3-branchpoint
Emil Velikov 7 years ago
parent
commit
32aa7ff647
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      Android.common.mk

+ 2
- 0
Android.common.mk View 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 += \

Loading…
Cancel
Save