aboutsummaryrefslogtreecommitdiff
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
commit4558f481b83a3c14ad5f1077b053a748a3203059 (patch)
tree4c57b74b9bbe4de19d3dba798f7a7db187dacaf7 /Makefile.rules
parent1d85a1f00bb9554873578d509b0b3aaf1d1d868f (diff)
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 cfa2f0cd87..6658edce04 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))