Use -Werror in external/libunwind_llvm am: 328ecd4d5f am: 98b55b853b
am: fddf06151e
Change-Id: Ie2ddc34640ba2e570a817d25a68f3f70ac71d63f
diff --git a/Android.bp b/Android.bp
index f066055..75c72f8 100644
--- a/Android.bp
+++ b/Android.bp
@@ -32,15 +32,18 @@
"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 @@
srcs: LIBUNWIND_SRC_FILES,
include_dirs: LIBUNWIND_INCLUDES,
local_include_dirs: LIBUNWIND_LOCAL_INCLUDES,
+ cflags: LIBUNWIND_CFLAGS,
cppflags: LIBUNWIND_CPPFLAGS,
stl: "none",
sanitize: {