X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=Android.common.mk;h=36d97c52dd1d77d21c5f0a4199f955bd82ba1585;hb=1bc71e8b655f2f02b3e3a0af34c7cad12b9cb83d;hp=397dc03dee48c7934fb6bb69b36d3f39df6e798e;hpb=6cbbd5b4f8c0fac468476ae19c5a02b42800f816;p=mesa.git diff --git a/Android.common.mk b/Android.common.mk index 397dc03dee4..36d97c52dd1 100644 --- a/Android.common.mk +++ b/Android.common.mk @@ -32,12 +32,12 @@ LOCAL_C_INCLUDES += \ MESA_VERSION := $(shell cat $(MESA_TOP)/VERSION) LOCAL_CFLAGS += \ -Wno-error \ + -Werror=incompatible-pointer-types \ -Wno-unused-parameter \ -Wno-pointer-arith \ -Wno-missing-field-initializers \ -Wno-initializer-overrides \ -Wno-mismatched-tags \ - -DVERSION=\"$(MESA_VERSION)\" \ -DPACKAGE_VERSION=\"$(MESA_VERSION)\" \ -DPACKAGE_BUGREPORT=\"https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa\" @@ -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 += \ @@ -89,6 +91,13 @@ LOCAL_CPPFLAGS += \ LOCAL_CONLYFLAGS += \ -std=c99 +# c11 timespec_get is part of bionic as well +# https://android-review.googlesource.com/c/718518 +# This means releases from P and earlier won't need this +ifeq ($(filter 5 6 7 8 9, $(MESA_ANDROID_MAJOR_VERSION)),) +LOCAL_CFLAGS += -DHAVE_TIMESPEC_GET +endif + ifeq ($(strip $(MESA_ENABLE_ASM)),true) ifeq ($(TARGET_ARCH),x86) LOCAL_CFLAGS += \