commit | d9a928a085328c6ae82852c464c4bd03623f9a10 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | Thu Jan 04 00:09:04 2024 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Thu Jan 04 00:09:04 2024 +0000 |
tree | 5947860d037559ec1b4fe5b712431c81a75bc0d3 | |
parent | 42a5cf0a4f8f18848200b9c8a9e8313c42e0202e [diff] | |
parent | 28d780a2f97064a8a99edfd24189ae911654b488 [diff] |
Merge "libbinder: Fix Trusty build from __ANDROID_VENDOR__" into main am: 28d780a2f9 Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/2889549 Change-Id: I0def5dbc39250763fc9abb875a705472dab78a7f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/libs/binder/ndk/stability.cpp b/libs/binder/ndk/stability.cpp index 73eb863..ca3d5e6 100644 --- a/libs/binder/ndk/stability.cpp +++ b/libs/binder/ndk/stability.cpp
@@ -27,7 +27,7 @@ #error libbinder_ndk should only be built in a system context #endif -#ifdef __ANDROID_VENDOR__ +#if defined(__ANDROID_VENDOR__) && !defined(__TRUSTY__) #error libbinder_ndk should only be built in a system context #endif
diff --git a/libs/binder/trusty/rust/rules.mk b/libs/binder/trusty/rust/rules.mk index 6de7eb5..d343f14 100644 --- a/libs/binder/trusty/rust/rules.mk +++ b/libs/binder/trusty/rust/rules.mk
@@ -30,6 +30,9 @@ external/rust/crates/downcast-rs \ trusty/user/base/lib/trusty-sys \ +MODULE_RUSTFLAGS += \ + --cfg 'android_vendor' \ + # Trusty does not have `ProcessState`, so there are a few # doc links in `IBinder` that are still broken. MODULE_RUSTFLAGS += \