[Lldb-commits] [PATCH] D30410: testsuite/android: build test executables with the android ndk directly

Tamas Berghammer via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Feb 28 07:21:10 PST 2017


tberghammer accepted this revision.
tberghammer added a comment.
This revision is now accepted and ready to land.

LGTM, assuming that it works on all 3 OSes



================
Comment at: packages/Python/lldbsuite/test/make/Android.rules:1
+NDK_ROOT := $(shell dirname $(CC))/../../../../..
+NDK_ROOT := $(realpath $(NDK_ROOT))
----------------
Will this file work on Windows (e.g. dirname, realpath, forward slash)?


================
Comment at: packages/Python/lldbsuite/test/make/Android.rules:4-13
+ifeq "$(findstring $(ARCH), aarch64 x86_64)" "$(ARCH)"
+	# lowest 64-bit API level
+	API_LEVEL := 21
+else ifeq "$(ARCH)" "i386"
+	# clone(2) declaration is present only since this api level
+	API_LEVEL := 17
+else
----------------
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


https://reviews.llvm.org/D30410





More information about the lldb-commits mailing list