summaryrefslogtreecommitdiff
path: root/build/Android.cpplint.mk
diff options
context:
space:
mode:
Diffstat (limited to 'build/Android.cpplint.mk')
-rw-r--r--build/Android.cpplint.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/build/Android.cpplint.mk b/build/Android.cpplint.mk
index 66ac897f76..b633ccc08d 100644
--- a/build/Android.cpplint.mk
+++ b/build/Android.cpplint.mk
@@ -18,7 +18,9 @@ include art/build/Android.common_build.mk
ART_CPPLINT := $(LOCAL_PATH)/tools/cpplint.py
ART_CPPLINT_FILTER := --filter=-whitespace/line_length,-build/include,-readability/function,-readability/streams,-readability/todo,-runtime/references,-runtime/sizeof,-runtime/threadsafe_fn,-runtime/printf
-ART_CPPLINT_FLAGS := --root=$(TOP)
+# Use `pwd` instead of $TOP for root, $TOP is always . and --root doesn't seem
+# to work with a relative path (b/34787652).
+ART_CPPLINT_FLAGS := --root=`pwd`
ART_CPPLINT_QUIET := --quiet
ART_CPPLINT_INGORED := \
runtime/elf.h \