diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2017-10-31 13:48:44 -0700 |
---|---|---|
committer | Pirama Arumuga Nainar <pirama@google.com> | 2017-10-31 13:48:44 -0700 |
commit | df01d33325ef69c75719123e5b53f68b840d54cf (patch) | |
tree | 48dbd757e40bebc4fe3214841a14957d5ca43baf | |
parent | 794bc3852146342eef74c568b397e2edd0da2b7b (diff) | |
download | clang-df01d33325ef69c75719123e5b53f68b840d54cf.tar.gz |
Do not add -Wno-unused-lambda-capture for Windows
The MinGW gcc doesn't have this warning and complains because of
-Werror.
Test: mma in external/clang
Change-Id: I5be5ca2e747e05676cf7537813f0fa53ff4f1b18
-rw-r--r-- | Android.bp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Android.bp b/Android.bp index 6599a43482..1c6ec24af2 100644 --- a/Android.bp +++ b/Android.bp @@ -10,7 +10,6 @@ cc_defaults { "-pedantic", "-Wcast-qual", "-Wno-long-long", - "-Wno-unused-lambda-capture", ], include_dirs: [ @@ -30,6 +29,11 @@ cc_defaults { "-Wno-error=uninitialized", ], }, + not_windows: { + cflags: [ + "-Wno-unused-lambda-capture", + ], + }, }, } |