mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-18 17:55:18 +00:00
have the makefiles check the llvm-config error code instead of charging
on an producing weird link errors. Patch by Yuri Gribov! llvm-svn: 112714
This commit is contained in:
parent
118bf38c3f
commit
707d1b96a2
@ -917,9 +917,20 @@ endif
|
||||
LLVMLibsOptions += -lLLVM-$(LLVMVersion)
|
||||
LLVMLibsPaths += $(SharedLibDir)/$(SharedPrefix)LLVM-$(LLVMVersion)$(SHLIBEXT)
|
||||
else
|
||||
LLVMLibsOptions += $(shell $(LLVM_CONFIG) --libs $(LINK_COMPONENTS))
|
||||
LLVMLibsPaths += $(LLVM_CONFIG) \
|
||||
$(shell $(LLVM_CONFIG) --libfiles $(LINK_COMPONENTS))
|
||||
|
||||
ifndef NO_LLVM_CONFIG
|
||||
LLVMConfigLibs := $(shell $(LLVM_CONFIG) --libs $(LINK_COMPONENTS) || echo Error)
|
||||
ifeq ($(LLVMConfigLibs),Error)
|
||||
$(error llvm-config --libs failed)
|
||||
endif
|
||||
LLVMLibsOptions += $(LLVMConfigLibs)
|
||||
LLVMConfigLibfiles := $(shell $(LLVM_CONFIG) --libfiles $(LINK_COMPONENTS) || echo Error)
|
||||
ifeq ($(LLVMConfigLibfiles),Error)
|
||||
$(error llvm-config --libfiles failed)
|
||||
endif
|
||||
LLVMLibsPaths += $(LLVM_CONFIG) $(LLVMConfigLibfiles)
|
||||
endif
|
||||
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
@ -10,9 +10,11 @@
|
||||
LEVEL = ../..
|
||||
|
||||
# We don't want this library to appear in `llvm-config --libs` output, so its
|
||||
# name doesn't start with "LLVM".
|
||||
# name doesn't start with "LLVM" and NO_LLVM_CONFIG is set.
|
||||
|
||||
LIBRARYNAME = CompilerDriver
|
||||
LINK_COMPONENTS = support system
|
||||
NO_LLVM_CONFIG = 1
|
||||
|
||||
|
||||
include $(LEVEL)/Makefile.common
|
||||
|
Loading…
x
Reference in New Issue
Block a user