aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.rules
diff options
context:
space:
mode:
authorMikhail Glushenkov <foldr@codedgers.com>2009-04-21 19:46:10 +0000
committerMikhail Glushenkov <foldr@codedgers.com>2009-04-21 19:46:10 +0000
commit3b335a477700ee036621afc90851534d10cf1138 (patch)
tree4c57b74b9bbe4de19d3dba798f7a7db187dacaf7 /Makefile.rules
parent32143fc78ee68867b6f17324c1957be566550787 (diff)
downloadexternal_llvm-3b335a477700ee036621afc90851534d10cf1138.zip
external_llvm-3b335a477700ee036621afc90851534d10cf1138.tar.gz
external_llvm-3b335a477700ee036621afc90851534d10cf1138.tar.bz2
Support --with-llvmgccdir and friends in llvmc, take 2.
Should now work when building with objdir != srcdir and when llvm-gcc is not available. Thanks to Duncan Sands for testing and advice! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69700 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.rules')
-rw-r--r--Makefile.rules3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile.rules b/Makefile.rules
index cfa2f0c..6658edc 100644
--- a/Makefile.rules
+++ b/Makefile.rules
@@ -1466,7 +1466,8 @@ endif # TARGET
ifdef LLVMC_BUILD_AUTOGENERATED_INC
-LLVMCPluginSrc := $(strip $(wildcard $(PROJ_SRC_DIR)/*.td))
+LLVMCPluginSrc := $(sort $(strip $(wildcard $(PROJ_SRC_DIR)/*.td)) \
+ $(strip $(wildcard $(PROJ_OBJ_DIR)/*.td)))
TDFiles := $(LLVMCPluginSrc) \
$(strip $(wildcard $(LLVM_SRC_ROOT)/include/llvm/CompilerDriver/*.td))