summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2015-04-01 19:21:59 -0700
committerStephen Hines <srhines@google.com>2015-04-02 01:41:18 -0700
commitceee4f98348e1a34c13efee0cec892ce5d2fa98b (patch)
treedf33f9d517b77b3d7a8271e7b164418d7a3a4da9 /tools
parent3fa16bd6062e23bcdb82ed4dd965674792e6b761 (diff)
downloadexternal_llvm-ceee4f98348e1a34c13efee0cec892ce5d2fa98b.zip
external_llvm-ceee4f98348e1a34c13efee0cec892ce5d2fa98b.tar.gz
external_llvm-ceee4f98348e1a34c13efee0cec892ce5d2fa98b.tar.bz2
Update lit.site.cfg to be able to run LLVM tests properly again.
Bug: 15433215 Add support for building llvm-dsymutil. Add support for building llvm-pdbdump. We still have 4 unexpected failures to track down with the Android build/run of these tests. These are all related to module loading support. Change-Id: Ibd39cbd2c0ee232a0df23a414d491420493ea94a
Diffstat (limited to 'tools')
-rw-r--r--tools/dsymutil/Android.mk34
-rw-r--r--tools/llvm-pdbdump/Android.mk34
2 files changed, 68 insertions, 0 deletions
diff --git a/tools/dsymutil/Android.mk b/tools/dsymutil/Android.mk
new file mode 100644
index 0000000..873146e
--- /dev/null
+++ b/tools/dsymutil/Android.mk
@@ -0,0 +1,34 @@
+LOCAL_PATH := $(call my-dir)
+
+LLVM_ROOT_PATH := $(LOCAL_PATH)/../..
+include $(LLVM_ROOT_PATH)/llvm.mk
+
+llvm_dsymutil_SRC_FILES := \
+ BinaryHolder.cpp \
+ DebugMap.cpp \
+ dsymutil.cpp \
+ DwarfLinker.cpp \
+ MachODebugMapParser.cpp
+
+llvm_dsymutil_STATIC_LIBRARIES := \
+ libLLVMDebugInfoDWARF \
+ libLLVMObject \
+ libLLVMMCParser \
+ libLLVMMC \
+ libLLVMBitReader \
+ libLLVMCore \
+ libLLVMSupport
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := llvm-dsymutil
+LOCAL_MODULE_CLASS := EXECUTABLES
+LOCAL_MODULE_TAGS := optional
+LOCAL_SRC_FILES := $(llvm_dsymutil_SRC_FILES)
+LOCAL_LDLIBS += -lpthread -lm -ldl
+
+LOCAL_STATIC_LIBRARIES := $(llvm_dsymutil_STATIC_LIBRARIES)
+
+include $(LLVM_HOST_BUILD_MK)
+include $(LLVM_GEN_INTRINSICS_MK)
+include $(BUILD_HOST_EXECUTABLE)
diff --git a/tools/llvm-pdbdump/Android.mk b/tools/llvm-pdbdump/Android.mk
new file mode 100644
index 0000000..82a406a
--- /dev/null
+++ b/tools/llvm-pdbdump/Android.mk
@@ -0,0 +1,34 @@
+LOCAL_PATH := $(call my-dir)
+
+LLVM_ROOT_PATH := $(LOCAL_PATH)/../..
+include $(LLVM_ROOT_PATH)/llvm.mk
+
+llvm_pdbdump_SRC_FILES := \
+ ClassDefinitionDumper.cpp \
+ CompilandDumper.cpp \
+ FunctionDumper.cpp \
+ llvm-pdbdump.cpp \
+ TypedefDumper.cpp \
+ TypeDumper.cpp \
+ VariableDumper.cpp
+
+llvm_pdbdump_STATIC_LIBRARIES := \
+ libLLVMDebugInfoPDB \
+ libLLVMSupport
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := llvm-pdbdump
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_CLASS := EXECUTABLES
+LOCAL_IS_HOST_MODULE := true
+
+LOCAL_SRC_FILES := $(llvm_pdbdump_SRC_FILES)
+
+LOCAL_STATIC_LIBRARIES := $(llvm_pdbdump_STATIC_LIBRARIES)
+
+LOCAL_LDLIBS += -lpthread -lm -ldl
+
+include $(LLVM_HOST_BUILD_MK)
+include $(LLVM_GEN_INTRINSICS_MK)
+include $(BUILD_HOST_EXECUTABLE)