Enable NDEBUG for libwebsockets on debuggable and host builds.
Test: pass
Change-Id: I27fa4dd6cbb683b7f47ee4c14499da7aae87fcb9
diff --git a/Android.bp b/Android.bp
index e8c7448..c1af17c 100644
--- a/Android.bp
+++ b/Android.bp
@@ -127,6 +127,13 @@
"libcap",
],
host_supported: true,
+ product_variables: {
+ debuggable: {
+ cflags: [
+ "-UNDEBUG",
+ ],
+ },
+ },
target: {
darwin: {
enabled: false,
@@ -145,6 +152,7 @@
"libcrypto",
],
cflags: [
+ "-UNDEBUG",
"-Wall",
"-Wsign-compare",
"-Wstrict-aliasing",