Don't attempt to run llvm-config in cmake/modules/Makefile when doing

``make clean`` because it won't be available.

This is an attempt to unbreak buildbots broken by r217484.

llvm-svn: 217490
This commit is contained in:
Dan Liew 2014-09-10 11:09:23 +00:00
parent be8c143dd6
commit d4abb8d308
1 changed files with 3 additions and 0 deletions

View File

@ -33,6 +33,8 @@ else
LLVM_ENABLE_RTTI := 0
endif
# Don't try to run llvm-config during clean because it won't be available
ifneq ($(MAKECMDGOALS),clean)
LLVM_LIBS_TO_EXPORT := $(subst -l,,$(shell $(LLVM_CONFIG) --libs $(LINK_COMPONENTS) || echo Error))
ifeq ($(LLVM_LIBS_TO_EXPORT),Error)
@ -42,6 +44,7 @@ endif
ifndef LLVM_LIBS_TO_EXPORT
$(error LLVM_LIBS_TO_EXPORT cannot be empty)
endif
endif
OBJMODS := LLVMConfig.cmake LLVMConfigVersion.cmake LLVMExports.cmake