aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2015-01-09 14:54:15 -0800
committerChih-Hung Hsieh <chh@google.com>2015-01-09 15:10:36 -0800
commitc26c17c48e3234ff2169107e282ec29e54432874 (patch)
treea4ad9a62d5975dd31e0ac0fb5c7f7c84f3c065f2
parentf608ab242d9b37e4b4c087314806071202d71f41 (diff)
downloadlinux-tools-perf-c26c17c48e3234ff2169107e282ec29e54432874.tar.gz
Disable clang only for the arm target.
Also ignore some clang warnings when compiled for other targets. BUG: 17167262 Change-Id: Id80f9ba3061ac71387a29df7a28c80468f9e9aee
-rw-r--r--perf-3.12.0/tools/perf/Android.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/perf-3.12.0/tools/perf/Android.mk b/perf-3.12.0/tools/perf/Android.mk
index 400e548..30f8414 100644
--- a/perf-3.12.0/tools/perf/Android.mk
+++ b/perf-3.12.0/tools/perf/Android.mk
@@ -134,6 +134,9 @@ common_elfutil_headers := \
common_clang_compiler_flags := \
-Wno-int-conversion \
+ -Wno-tautological-pointer-compare \
+ -Wno-tautological-constant-out-of-range-compare \
+ -Wno-pointer-bool-conversion \
common_compiler_flags := \
-include external/linux-tools-perf/android-fixes.h \
@@ -179,9 +182,11 @@ host_predefined_macros := \
-DHAVE_ON_EXIT \
include $(CLEAR_VARS)
-# builtin-report.c and builtin-top.c have undefined __aeabi_read_tp
+ifeq ($(TARGET_ARCH),arm)
+# b/17167262, builtin-report.c and builtin-top.c have undefined __aeabi_read_tp
# when compiled with clang -fpie.
LOCAL_CLANG := false
+endif
LOCAL_SRC_FILES := $(libperf_src_files)
@@ -275,9 +280,11 @@ perf_src_files_x86 = \
tests/perf-time-to-tsc.c \
include $(CLEAR_VARS)
-# builtin-report.c and builtin-top.c have undefined __aeabi_read_tp
+ifeq ($(TARGET_ARCH),arm)
+# b/17167262, builtin-report.c and builtin-top.c have undefined __aeabi_read_tp
# when compiled with clang -fpie.
LOCAL_CLANG := false
+endif
LOCAL_SRC_FILES := $(perf_src_files)
LOCAL_SRC_FILES_x86 := $(perf_src_files_x86)