aboutsummaryrefslogtreecommitdiffstats
path: root/tools/llvm-lto
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2014-06-09 16:49:54 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-06-09 16:49:55 +0000
commit19c6fbb3e8aaf74093afa08013134b61fa08f245 (patch)
treef4f29ff2e71102ee86111bc695830ae5850ec50c /tools/llvm-lto
parenta637ea99e253d9d3bd16ebb9e33f5828d38d94de (diff)
parent075c621d834af7ffc32d2067fadb147cc1758b99 (diff)
downloadexternal_llvm-19c6fbb3e8aaf74093afa08013134b61fa08f245.zip
external_llvm-19c6fbb3e8aaf74093afa08013134b61fa08f245.tar.gz
external_llvm-19c6fbb3e8aaf74093afa08013134b61fa08f245.tar.bz2
Merge "Adds the ability to run the llvm test suite in-tree."
Diffstat (limited to 'tools/llvm-lto')
-rw-r--r--tools/llvm-lto/Android.mk81
1 files changed, 81 insertions, 0 deletions
diff --git a/tools/llvm-lto/Android.mk b/tools/llvm-lto/Android.mk
new file mode 100644
index 0000000..a5782d9
--- /dev/null
+++ b/tools/llvm-lto/Android.mk
@@ -0,0 +1,81 @@
+LOCAL_PATH := $(call my-dir)
+
+LLVM_ROOT_PATH := $(LOCAL_PATH)/../..
+
+
+#===---------------------------------------------------------------===
+# llvm-lto command line tool
+#===---------------------------------------------------------------===
+
+llvm_lto_SRC_FILES := \
+ llvm-lto.cpp
+
+llvm_lto_STATIC_LIBRARIES := \
+ libLLVMARMCodeGen \
+ libLLVMARMInfo \
+ libLLVMARMDesc \
+ libLLVMARMAsmPrinter \
+ libLLVMARMAsmParser \
+ libLLVMARMDisassembler \
+ libLLVMAArch64CodeGen \
+ libLLVMAArch64Info \
+ libLLVMAArch64Desc \
+ libLLVMAArch64AsmPrinter \
+ libLLVMAArch64AsmParser \
+ libLLVMAArch64Utils \
+ libLLVMAArch64Disassembler \
+ libLLVMMipsCodeGen \
+ libLLVMMipsInfo \
+ libLLVMMipsDesc \
+ libLLVMMipsAsmPrinter \
+ libLLVMMipsAsmParser \
+ libLLVMMipsDisassembler \
+ libLLVMX86CodeGen \
+ libLLVMX86Info \
+ libLLVMX86Desc \
+ libLLVMX86AsmPrinter \
+ libLLVMX86AsmParser \
+ libLLVMX86Utils \
+ libLLVMX86Disassembler \
+ libLLVMAsmPrinter \
+ libLLVMSelectionDAG \
+ libLLVMCodeGen \
+ libLLVMTarget \
+ libLLVMLTO \
+ libLLVMBitReader \
+ libLLVMBitWriter \
+ libLLVMLinker \
+ libLLVMipo \
+ libLLVMTransformObjCARC \
+ libLLVMScalarOpts \
+ libLLVMInstCombine \
+ libLLVMVectorize \
+ libLLVMTransformUtils \
+ libLLVMAnalysis \
+ libLLVMipa \
+ libLLVMMC \
+ libLLVMMCParser \
+ libLLVMMCDisassembler \
+ libLLVMObject \
+ libLLVMCore \
+ libLLVMAsmParser \
+ libLLVMOption \
+ libLLVMSupport \
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := llvm-lto
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_CLASS := EXECUTABLES
+LOCAL_IS_HOST_MODULE := true
+
+LOCAL_SRC_FILES := $(llvm_lto_SRC_FILES)
+
+LOCAL_STATIC_LIBRARIES := $(llvm_lto_STATIC_LIBRARIES)
+
+LOCAL_LDLIBS += -lpthread -lm -ldl
+
+include $(LLVM_ROOT_PATH)/llvm.mk
+include $(LLVM_HOST_BUILD_MK)
+include $(LLVM_GEN_INTRINSICS_MK)
+include $(BUILD_HOST_EXECUTABLE)