Skip to content

Commit

Permalink
Don't attempt to run llvm-config in cmake/modules/Makefile when doing
Browse files Browse the repository at this point in the history
``make clean`` because it won't be available.

This is an attempt to unbreak buildbots broken by r217484.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217490 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
delcypher committed Sep 10, 2014
1 parent b4c17e7 commit 0562707
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/modules/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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

Expand Down

0 comments on commit 0562707

Please sign in to comment.