diff options
author | Chih-hung Hsieh <chh@google.com> | 2017-08-09 22:13:17 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-08-09 22:13:17 +0000 |
commit | a3d0bb71592a299ec4cc8699bf09e5ecdc7236e2 (patch) | |
tree | 4c1f0a52c43ee9b7f2d56961d3c003ee43201bf2 | |
parent | 57f76666a8c1a1cfbffbba078baebee5fa33b6af (diff) | |
parent | a8de068cb51d6b0fd0be733c943fa6e7a3e61e1f (diff) | |
download | llvm-ndk-release-r16.tar.gz |
Merge "Suppress non-critical warnings in external/llvm."ndk-r16-beta2ndk-r16-beta1ndk-r16android-o-iot-preview-5o-iot-preview-5ndk-release-r16ndk-r16-release
-rw-r--r-- | Android.bp | 9 | ||||
-rw-r--r-- | lib/Android.bp | 6 | ||||
-rw-r--r-- | lib/Fuzzer/Android.bp | 12 | ||||
-rw-r--r-- | lib/TableGen/Android.bp | 6 |
4 files changed, 33 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp index 0f8dba64fd22..1f3d9e0c874a 100644 --- a/Android.bp +++ b/Android.bp @@ -2,6 +2,10 @@ cc_defaults { name: "llvm-defaults", defaults: ["llvm-defaults-no-generated-headers"], header_libs: ["llvm-headers"], + tidy_checks: [ + "-google-build-*", + "-google-global-*", + ], } // This module defines all of the defaults used to compiled llvm, except for @@ -41,6 +45,11 @@ llvm_defaults { "-Wno-error=user-defined-warnings", ], + tidy_checks: [ + "-google-build-*", + "-google-global-*", + ], + header_libs: ["llvm-headers-no-generated-headers"], target: { diff --git a/lib/Android.bp b/lib/Android.bp index 33b2cf28c297..9af201d3c3cc 100644 --- a/lib/Android.bp +++ b/lib/Android.bp @@ -1,6 +1,12 @@ cc_defaults { name: "llvm-lib-defaults", defaults: ["llvm-defaults"], + cflags: [ + "-W", + "-Wall", + "-Wno-unused-lambda-capture", + "-Wno-unused-parameter", + ], export_header_lib_headers: ["llvm-headers"], target: { windows: { diff --git a/lib/Fuzzer/Android.bp b/lib/Fuzzer/Android.bp index b0b152ca3f72..5405f636bd7a 100644 --- a/lib/Fuzzer/Android.bp +++ b/lib/Fuzzer/Android.bp @@ -18,6 +18,12 @@ cc_library_static { name: "libLLVMFuzzerNoMain", host_supported: true, include_dirs: ["external/compiler-rt/include"], + cflags: [ + "-W", + "-Wall", + "-Wno-unused-lambda-capture", + "-Wno-unused-parameter", + ], srcs: ["*.cpp"], exclude_srcs: ["FuzzerMain.cpp"], sanitize: { @@ -29,6 +35,12 @@ cc_library_static { cc_library_static { name: "libLLVMFuzzer", host_supported: true, + cflags: [ + "-W", + "-Wall", + "-Wno-unused-lambda-capture", + "-Wno-unused-parameter", + ], srcs: ["FuzzerMain.cpp"], whole_static_libs: ["libLLVMFuzzerNoMain"], sanitize: { diff --git a/lib/TableGen/Android.bp b/lib/TableGen/Android.bp index c3310178d698..a9e06826bfd3 100644 --- a/lib/TableGen/Android.bp +++ b/lib/TableGen/Android.bp @@ -1,6 +1,12 @@ cc_library_static { name: "libLLVMTableGen", defaults: ["llvm-defaults-no-generated-headers"], + cflags: [ + "-W", + "-Wall", + "-Wno-unused-lambda-capture", + "-Wno-unused-parameter", + ], srcs: ["*.cpp"], target: { // llvm-defaults turns off host builds by default, turn it back on for |