summaryrefslogtreecommitdiffstats
path: root/llvm/cmake/modules
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
commitd4abb8d308e11ee7d01b009ba86faf85e4609781 (patch)
treead8351da7904109e27053794b3bdb06cc58d1bd0 /llvm/cmake/modules
parentbe8c143dd604ecdbe246d4a3bfdc0483e873557f (diff)
downloadbcm5719-llvm-d4abb8d308e11ee7d01b009ba86faf85e4609781.tar.gz
bcm5719-llvm-d4abb8d308e11ee7d01b009ba86faf85e4609781.zip
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
Diffstat (limited to 'llvm/cmake/modules')
-rw-r--r--llvm/cmake/modules/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/cmake/modules/Makefile b/llvm/cmake/modules/Makefile
index 1ec5b190b35..dd31aa7926c 100644
--- a/llvm/cmake/modules/Makefile
+++ b/llvm/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
OpenPOWER on IntegriCloud