summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorDan Liew <dan@su-root.co.uk>2014-09-10 11:09:23 +0000
committerDan Liew <dan@su-root.co.uk>2014-09-10 11:09:23 +0000
commit056270700dc2c0238b5efc5932494bf9932a3677 (patch)
tree5d8d06f020abef2a5d7821c6e1d5883df48a5490 /cmake
parentb4c17e7b51187f9ce8d2d1908d11893c654d78d0 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217490 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake')
-rw-r--r--cmake/modules/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/modules/Makefile b/cmake/modules/Makefile
index 1ec5b190b35..dd31aa7926c 100644
--- a/cmake/modules/Makefile
+++ b/cmake/modules/Makefile
@@ -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