From 075c621d834af7ffc32d2067fadb147cc1758b99 Mon Sep 17 00:00:00 2001 From: Chris Wailes Date: Mon, 2 Jun 2014 11:53:16 -0700 Subject: Adds the ability to run the llvm test suite in-tree. This was accomplished by building additional tools and hand-generating several files that are auto-generated by the configuration system when LLVM is built out-of-tree. The LTO, Interpreter, and DebugInfo libraries are now being compiled, and several source files were added to existing compilation targets. To run these tests you must first run build/envsetup.sh and have used lunch to select a target. You can then launch the test script by running: cd $ANDROID_BUILD_TOP/external/llvm && ./android_test.sh Bug: 15433215 Change-Id: I43d87de0a4620cdd46c8d0f825dd4428e8409702 --- Android.mk | 46 +++++++++++++++++++++++++++++++++++++++------- 1 file changed, 39 insertions(+), 7 deletions(-) (limited to 'Android.mk') diff --git a/Android.mk b/Android.mk index ea75e5e..d456977 100644 --- a/Android.mk +++ b/Android.mk @@ -15,12 +15,15 @@ subdirs := \ lib/ExecutionEngine/RuntimeDyld \ lib/ExecutionEngine/JIT \ lib/ExecutionEngine/MCJIT \ + lib/ExecutionEngine/Interpreter \ lib/CodeGen \ lib/CodeGen/AsmPrinter \ lib/CodeGen/SelectionDAG \ + lib/DebugInfo \ lib/IR \ lib/IRReader \ lib/Linker \ + lib/LTO \ lib/MC \ lib/MC/MCDisassembler \ lib/MC/MCParser \ @@ -37,8 +40,6 @@ subdirs := \ lib/Transforms/Scalar \ lib/Transforms/Utils \ lib/Transforms/Vectorize \ - utils/FileCheck \ - utils/TableGen # ARM Code Generation Libraries subdirs += \ @@ -79,11 +80,42 @@ subdirs += \ lib/Target/X86/Utils # LLVM Command Line Tools -subdirs += tools/llc -subdirs += tools/llvm-as -subdirs += tools/llvm-dis -subdirs += tools/llvm-link -#subdirs += tools/opt +subdirs += \ + tools/bugpoint \ + tools/llc \ + tools/lli \ + tools/llvm-ar \ + tools/llvm-as \ + tools/llvm-bcanalyzer \ + tools/llvm-c-test \ + tools/llvm-config \ + tools/llvm-cov \ + tools/llvm-dis \ + tools/llvm-diff \ + tools/llvm-dwarfdump \ + tools/llvm-extract \ + tools/llvm-link \ + tools/llvm-lto \ + tools/llvm-mc \ + tools/llvm-mcmarkup \ + tools/llvm-nm \ + tools/llvm-objdump \ + tools/llvm-profdata \ + tools/llvm-readobj \ + tools/llvm-rtdyld \ + tools/llvm-size \ + tools/macho-dump \ + tools/obj2yaml \ + tools/opt \ + tools/yaml2obj \ + +# LLVM Command Line Utilities +subdirs += \ + utils/count \ + utils/FileCheck \ + utils/FileUpdate \ + utils/not \ + utils/TableGen \ include $(LOCAL_PATH)/llvm.mk include $(LOCAL_PATH)/shared_llvm.mk -- cgit v1.1