This is an archive of the discontinued LLVM Phabricator instance.

[scudo][standalone] Clean-up of Android specific compilation.
AbandonedPublic

Authored by cferris on Aug 12 2019, 5:15 PM.

Details

Summary

It is possible to build with ANDROID defined, but without
bionic. However, all of the code under the SCUDO_ANDROID
assumes that it is being compiled for android with bionic.
Make this explicit by changing SCUDO_ANDROID to SCUDO_ANDROID_BIONIC
and set it only if it is really building for bionic.

In addition, use bionic headers for some values rather than redefining
them.

Verified that this builds properly on aosp master.

Event Timeline

cferris created this revision.Aug 12 2019, 5:15 PM

We might have to discuss this.
I either compile Android binaries by compiling it with the Scudo sources, or I compile the platform with Scudo replacing jemalloc in Android.
Both work with -D_BIONIC=1 for the Bionic version, which can probably be replaced by BIONIC.
So I am not sure why compiling it on Android but not part of Bionic didn't work for you, I can give you the compilation command lines I used tomorrow.

cferris abandoned this revision.Sep 9 2019, 1:00 PM

This isn't quite right for the way people expect this to compile, so abandon this change.