summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2017-09-30 01:08:37 +0000
committerandroid-build-merger <android-build-merger@google.com>2017-09-30 01:08:37 +0000
commit8eb95bd73a80b82d5071ff5e6d857639ca0bac71 (patch)
tree95d97bef877a89451183d481c8fa848f9688a107
parent9f14f5dc031d651055c1b61d9139193016a900dd (diff)
parentfddf06151e9a85d535d33c7ed896bd233d4adfb5 (diff)
downloadlibunwind_llvm-8eb95bd73a80b82d5071ff5e6d857639ca0bac71.tar.gz
Use -Werror in external/libunwind_llvm am: 328ecd4d5f am: 98b55b853b
am: fddf06151e Change-Id: Ie2ddc34640ba2e570a817d25a68f3f70ac71d63f
-rw-r--r--Android.bp8
1 files changed, 6 insertions, 2 deletions
diff --git a/Android.bp b/Android.bp
index f066055..75c72f8 100644
--- a/Android.bp
+++ b/Android.bp
@@ -32,15 +32,18 @@ LIBUNWIND_LOCAL_INCLUDES = [
"include",
]
+LIBUNWIND_CFLAGS = [
+ "-Wall",
+ "-Werror",
+]
+
LIBUNWIND_CPPFLAGS = [
"-std=c++14",
"-fexceptions",
- "-Wall",
"-Wextra",
"-Wno-unused-function",
"-Wno-unused-parameter",
"-Wno-unused-local-typedef",
- "-Werror",
]
cc_library_static {
@@ -50,6 +53,7 @@ cc_library_static {
srcs: LIBUNWIND_SRC_FILES,
include_dirs: LIBUNWIND_INCLUDES,
local_include_dirs: LIBUNWIND_LOCAL_INCLUDES,
+ cflags: LIBUNWIND_CFLAGS,
cppflags: LIBUNWIND_CPPFLAGS,
stl: "none",
sanitize: {