[Toybox] What am I doing wrong with ndk-r20?

Rob Landley rob at landley.net
Wed Oct 9 19:12:07 PDT 2019


On 10/9/19 11:27 AM, enh wrote:
> if you want a quick hack, and don't care about _old_ versions of the
> NDK (which you don't, because they can't build toybox anyway), you
> could replace __ANDROID_NDK__ with __NDK_MAJOR__. that should fix r20
> and also work for r19 and r21 (and the OS, because it won't be set
> there, which is intended in this case).

How about:

#if defined(__BIONIC__) && !defined(__ANDROID_NDK__) && !defined(__NDK_MAJOR__)

Rob



More information about the Toybox mailing list