aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorDan Albert <danalbert@google.com>2014-10-31 15:57:45 -0700
committerDan Albert <danalbert@google.com>2014-11-03 09:31:11 -0800
commit09aa871978270e22a8e77171747ff9ef71e53262 (patch)
tree96ccad83f73c2f699aec5f8e89230542c3d87870 /utils
parenta7f357148de9be178f55725575c70ce9a888d81c (diff)
downloadexternal_llvm-09aa871978270e22a8e77171747ff9ef71e53262.zip
external_llvm-09aa871978270e22a8e77171747ff9ef71e53262.tar.gz
external_llvm-09aa871978270e22a8e77171747ff9ef71e53262.tar.bz2
Allow mm in these subdirectories.
These files weren't including llvm.mk themselves, causing LLVM_HOST_BUILD_MK to be undefined. For make, include $(undefined_var) fails without error, because make is quite possibly the worst tool ever made. Change-Id: Ic2ddd7ba844cf0da98e527b4f05511acb9db3b06
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/Android.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/TableGen/Android.mk b/utils/TableGen/Android.mk
index a743950..48cc425 100644
--- a/utils/TableGen/Android.mk
+++ b/utils/TableGen/Android.mk
@@ -1,4 +1,6 @@
-LOCAL_PATH:= $(call my-dir)
+LOCAL_PATH := $(call my-dir)
+LLVM_ROOT_PATH := $(LOCAL_PATH)/../..
+include $(LLVM_ROOT_PATH)/llvm.mk
tablegen_SRC_FILES := \
AsmMatcherEmitter.cpp \
@@ -34,6 +36,7 @@ tablegen_SRC_FILES := \
X86RecognizableInstr.cpp
include $(CLEAR_VARS)
+LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk
LOCAL_MODULE := llvm-tblgen
LOCAL_MODULE_TAGS := optional