The NDK uses a separate set of libc++ headers in the sysroot. Any headers
in the installation directory are not going to work on Android, not least
because they use a different name for the inline namespace (std::1 instead
of std::ndk1).
This effectively makes it impossible to produce a single toolchain that is
capable of targeting both Android and another platform that expects libc++
headers to be installed in the installation directory, such as Mac.
In order to allow this scenario to work, stop looking for headers in the
install directory on Android.
This looks like it should be failing. The NDK headers are installed to <NDK>/sysroot/usr/include/c++/v1. Presumably it's passing because the trivial sysroot in the test directory is not complete enough?
Will need a more specific CHECK-NOT here, and also a CHECK to make sure the correct directory is being searched.