projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change 'make install' to install tblgen, for better support of out-of-tree targets,
[oota-llvm.git]
/
Makefile.rules
diff --git
a/Makefile.rules
b/Makefile.rules
index cfa2f0cd8793b2b83873c11f40d641bab173700f..ce31f22ee0cd74418c349841acee13f17ddef96a 100644
(file)
--- a/
Makefile.rules
+++ b/
Makefile.rules
@@
-361,6
+361,15
@@
ifeq ($(ARCH),Alpha)
LD.Flags += -Wl,--no-relax
endif
LD.Flags += -Wl,--no-relax
endif
+ifeq ($(OS),MingW)
+ ifeq ($(LLVM_CROSS_COMPILING),1)
+ # Work around http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=525016
+ ifdef TOOLNAME
+ LD.Flags += -Wl,--allow-multiple-definition
+ endif
+ endif
+endif
+
#--------------------------------------------------------------------
# Directory locations
#--------------------------------------------------------------------
#--------------------------------------------------------------------
# Directory locations
#--------------------------------------------------------------------
@@
-1466,7
+1475,8
@@
endif # TARGET
ifdef LLVMC_BUILD_AUTOGENERATED_INC
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))
TDFiles := $(LLVMCPluginSrc) \
$(strip $(wildcard $(LLVM_SRC_ROOT)/include/llvm/CompilerDriver/*.td))