aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Prichard <rprichard@google.com>2024-04-10 22:44:35 -0700
committerRyan Prichard <rprichard@google.com>2024-04-10 22:46:18 -0700
commit722f2dd68529341306613d6a737b6a7e7ab789d8 (patch)
tree3ff1d4e0fc5bc890f9221eeb104a08916d18d17a
parentb223b240c3cd85b028373b0513907b0625a59161 (diff)
downloadllvm-722f2dd68529341306613d6a737b6a7e7ab789d8.tar.gz
Build LLVM with -Wno-deprecated-declarations
The external/llvm and frameworks/compile/mclinker repositories aren't being updated with upstream source, so it makes sense to ignore deprecation warnings. There are ~3000 warnings from std::unary_function and std::binary_function after upgrading libc++. Also: replace -std=c++11 cppflag with Soong's cpp_std property. Bug: http://b/333165689 Test: treehugger, build with topic:use-prebuilt-libcxx Change-Id: Iffc4d15340980baff51ef56a3aba80514cb1ac88
-rw-r--r--Android.bp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp
index 4189f3073ca5..cdf8594f6701 100644
--- a/Android.bp
+++ b/Android.bp
@@ -70,6 +70,8 @@ llvm_defaults {
// TODO(b/153609531): remove when no longer needed.
native_bridge_supported: true,
+ cpp_std: "c++11",
+
cflags: [
"-D_GNU_SOURCE",
"-D__STDC_LIMIT_MACROS",
@@ -84,6 +86,7 @@ llvm_defaults {
"-Wno-maybe-uninitialized",
"-Wno-missing-field-initializers",
"-Wno-implicit-fallthrough",
+ "-Wno-deprecated-declarations",
"-Wwrite-strings",
"-Werror",
"-Dsprintf=sprintf",
@@ -91,7 +94,6 @@ llvm_defaults {
cppflags: [
"-Wno-sign-promo",
- "-std=c++11",
],
tidy_checks: [