summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Krasin <krasin@google.com>2015-10-20 14:34:59 -0700
committerIvan Krasin <krasin@google.com>2015-10-20 14:34:59 -0700
commit22febf8e7b6aed20db450b5967a63790562f7c6d (patch)
tree8e9b7a9da3585165402df831925b8e5a35f2c882
parent08083b8469af3b579c63e0b7f4e7b8f1bf7e46b3 (diff)
downloadgatekeeper-22febf8e7b6aed20db450b5967a63790562f7c6d.tar.gz
Disable sanitizer coverage flags for gatekeeper.
The current version of Clang compiler crashes, while compiling libgatekeeper, if --sanitizer-coverage=edge is specified. Temporary disable coverage flags. Bug: 25119481 Change-Id: I30659a8a1eff4fc91e0e39f94444f71e68b5f4a5
-rw-r--r--Android.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 20ebbcb..677118f 100644
--- a/Android.mk
+++ b/Android.mk
@@ -29,6 +29,11 @@ LOCAL_CFLAGS = -Wall -Werror -g
LOCAL_MODULE_TAGS := optional
LOCAL_EXPORT_C_INCLUDE_DIRS := $(LOCAL_PATH)/include
LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
+# TODO(krasin): reenable coverage flags, when the new Clang toolchain is released.
+# Currently, if enabled, these flags will cause an internal error in Clang.
+# Bug: 25119481
+LOCAL_CLANG_CFLAGS += -fno-sanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp
+
include $(BUILD_SHARED_LIBRARY)
include $(call first-makefiles-under,$(LOCAL_PATH))