From 659edf0d5e465b1e4ca34afa03aa5819aae94c44 Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Fri, 10 Dec 2021 01:31:28 +0000 Subject: libbinder_ndk: use __assert on host The problem is that the arguments were out of order. I was lazy here before because binder couldn't actually run on host, but it's different now with RPC binder. Bug: email thread "AIDL and host_supported" Test: bindeRpcTest Change-Id: I98313004ab1e3dac6833bd326e7a7f997a017a8b --- libs/binder/ndk/Android.bp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/binder/ndk/Android.bp b/libs/binder/ndk/Android.bp index ee46fcb884..42895740ea 100644 --- a/libs/binder/ndk/Android.bp +++ b/libs/binder/ndk/Android.bp @@ -38,7 +38,7 @@ cc_defaults { host: { cflags: [ "-D__INTRODUCED_IN(n)=", - "-D__assert(a,b,c)=", + "-D__assert(a,b,c)=do { syslog(LOG_ERR, a \": \" c); abort(); } while(false)", // We want all the APIs to be available on the host. "-D__ANDROID_API__=10000", ], -- cgit v1.2.3-59-g8ed1b