aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYifan Hong <elsk@google.com>2021-04-07 17:38:14 -0700
committerYifan Hong <elsk@google.com>2021-04-09 11:18:08 -0700
commit6b7c9eb939f49799ae7c804f8f5b78330005a326 (patch)
tree82d0bd731af32386dacecb74767d5068641af2b2
parentf2392004660f5b4dca21e30c9660a03145ccee17 (diff)
downloadlibwebsockets-6b7c9eb939f49799ae7c804f8f5b78330005a326.tar.gz
Enable NDEBUG for libwebsockets on debuggable and host builds.
Test: pass Change-Id: I27fa4dd6cbb683b7f47ee4c14499da7aae87fcb9
-rw-r--r--Android.bp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
index e8c74487..c1af17cc 100644
--- a/Android.bp
+++ b/Android.bp
@@ -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",