diff options
author | Yifan Hong <elsk@google.com> | 2021-04-07 17:38:14 -0700 |
---|---|---|
committer | Yifan Hong <elsk@google.com> | 2021-04-09 11:18:08 -0700 |
commit | 6b7c9eb939f49799ae7c804f8f5b78330005a326 (patch) | |
tree | 82d0bd731af32386dacecb74767d5068641af2b2 | |
parent | f2392004660f5b4dca21e30c9660a03145ccee17 (diff) | |
download | libwebsockets-6b7c9eb939f49799ae7c804f8f5b78330005a326.tar.gz |
Enable NDEBUG for libwebsockets on debuggable and host builds.
Test: pass
Change-Id: I27fa4dd6cbb683b7f47ee4c14499da7aae87fcb9
-rw-r--r-- | Android.bp | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -127,6 +127,13 @@ cc_library_static { "libcap", ], host_supported: true, + product_variables: { + debuggable: { + cflags: [ + "-UNDEBUG", + ], + }, + }, target: { darwin: { enabled: false, @@ -145,6 +152,7 @@ cc_library_static { "libcrypto", ], cflags: [ + "-UNDEBUG", "-Wall", "-Wsign-compare", "-Wstrict-aliasing", |