This is an archive of the discontinued LLVM Phabricator instance.

testsuite/android: build test executables with the android ndk directly
ClosedPublic

Authored by labath on Feb 27 2017, 8:38 AM.

Details

Summary

This teaches the test makefiles about the Android NDK, so we are able to
run the tests without first going through the make_standalone_toolchain
script. The motivation for this is the ability to run both libc++ and
libstdc++ tests together, which previously was not possible because
make_standalone_toolchain bakes in the STL to use during toolchain
creation time. The support for this is not present yet -- this change
only make sure we don't regress for existing funcionality (gcc w/
libstdc++). Clang and libc++ support will be added later.

Diff Detail

Repository
rL LLVM

Event Timeline

labath created this revision.Feb 27 2017, 8:38 AM
tberghammer accepted this revision.Feb 28 2017, 7:21 AM

LGTM, assuming that it works on all 3 OSes

packages/Python/lldbsuite/test/make/Android.rules
1 ↗(On Diff #89890)

Will this file work on Windows (e.g. dirname, realpath, forward slash)?

4–13 ↗(On Diff #89890)

Does it make sense to use a different API level for every architecture? I think making it somewhat consistent would make it easier to use it

This revision is now accepted and ready to land.Feb 28 2017, 7:21 AM
packages/Python/lldbsuite/test/make/Android.rules
1 ↗(On Diff #89890)

I copied this from the main makefile, so I am pretty sure it will. Why will it work is a different question though. :)

4–13 ↗(On Diff #89890)

Well.. there's no guarantee that an API 21 file will run on an older device. They seem to run fine, but I'd like to avoid relying on that if it is possible. We can always increase the number if it becomes a maintenance burden.

This revision was automatically updated to reflect the committed changes.