summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPirama Arumuga Nainar <pirama@google.com>2015-04-23 11:06:25 -0700
committerPirama Arumuga Nainar <pirama@google.com>2015-04-30 17:58:43 -0700
commitb928ea3b96fd7bb0945799da90b7b122968ddc53 (patch)
treef93233406804988e4e83b467f09a1fc76153c3a5
parent1d7bc86f20dff90559ac0f5ff30099577db2cd28 (diff)
downloadexternal_llvm-b928ea3b96fd7bb0945799da90b7b122968ddc53.zip
external_llvm-b928ea3b96fd7bb0945799da90b7b122968ddc53.tar.gz
external_llvm-b928ea3b96fd7bb0945799da90b7b122968ddc53.tar.bz2
Add makefile for tools/bugpoint-passes
bug 15433215 Build BugpointPasses module for the host. It is loaded by some bugpoint tests. Cherry pick https://android-review.googlesource.com/#/c/148016/ from AOSP Change-Id: I1c0450a63d5eb25cb9da9f07baaaceefd454def5
-rw-r--r--Android.mk1
-rw-r--r--tools/bugpoint-passes/Android.mk21
2 files changed, 22 insertions, 0 deletions
diff --git a/Android.mk b/Android.mk
index f8a2716..f99b5ba 100644
--- a/Android.mk
+++ b/Android.mk
@@ -85,6 +85,7 @@ subdirs += \
# LLVM Command Line Tools
subdirs += \
tools/bugpoint \
+ tools/bugpoint-passes \
tools/dsymutil \
tools/llc \
tools/lli \
diff --git a/tools/bugpoint-passes/Android.mk b/tools/bugpoint-passes/Android.mk
new file mode 100644
index 0000000..51b35c7
--- /dev/null
+++ b/tools/bugpoint-passes/Android.mk
@@ -0,0 +1,21 @@
+LOCAL_PATH := $(call my-dir)
+
+LLVM_ROOT_PATH := $(LOCAL_PATH)/../..
+include $(LLVM_ROOT_PATH)/llvm.mk
+
+bugpoint_passes_SRC_FILES := \
+ TestPasses.cpp
+
+# BugpointPasses module for the host
+# =====================================================
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(bugpoint_passes_SRC_FILES)
+LOCAL_MODULE := BugpointPasses
+
+LOCAL_MODULE_TAGS := optional
+LOCAL_MODULE_CLASS := SHARED_LIBRARIES # needed for tblgen
+
+include $(LLVM_HOST_BUILD_MK)
+include $(LLVM_GEN_INTRINSICS_MK)
+include $(BUILD_HOST_SHARED_LIBRARY)