summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Android.mk2
-rw-r--r--tools/incident_report/Android.mk3
-rw-r--r--tools/incident_section_gen/Android.mk2
3 files changed, 7 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index 63ad83f6a216..fb962a24dc08 100644
--- a/Android.mk
+++ b/Android.mk
@@ -1409,6 +1409,8 @@ include $(BUILD_JAVA_LIBRARY)
# ==== c++ proto host library ==============================
include $(CLEAR_VARS)
LOCAL_MODULE := libplatformprotos
+# b/34740546, work around clang-tidy segmentation fault.
+LOCAL_TIDY_CHECKS := -modernize*
LOCAL_PROTOC_OPTIMIZE_TYPE := full
LOCAL_PROTOC_FLAGS := \
--include_source_info \
diff --git a/tools/incident_report/Android.mk b/tools/incident_report/Android.mk
index 9e56e3d7eeaf..e57a95949e5a 100644
--- a/tools/incident_report/Android.mk
+++ b/tools/incident_report/Android.mk
@@ -34,6 +34,9 @@ LOCAL_SHARED_LIBRARIES := \
libplatformprotos \
libprotobuf-cpp-full
+# b/34740546, work around clang-tidy segmentation fault.
+LOCAL_TIDY_CHECKS := -modernize*
+
LOCAL_C_FLAGS := \
-Wno-unused-parameter
include $(BUILD_HOST_EXECUTABLE)
diff --git a/tools/incident_section_gen/Android.mk b/tools/incident_section_gen/Android.mk
index acf3f8327b5c..05490266576a 100644
--- a/tools/incident_section_gen/Android.mk
+++ b/tools/incident_section_gen/Android.mk
@@ -21,6 +21,8 @@ LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_MODULE := incident-section-gen
+# b/34740546, work around clang-tidy segmentation fault.
+LOCAL_TIDY_CHECKS := -modernize*
LOCAL_CFLAGS += -g -O0
LOCAL_C_INCLUDES := \
external/protobuf/src