[llvm] r217490 - Don't attempt to run llvm-config in cmake/modules/Makefile when doing
Dan Liew
dan at su-root.co.uk
Wed Sep 10 04:09:23 PDT 2014
Author: delcypher
Date: Wed Sep 10 06:09:23 2014
New Revision: 217490
URL: http://llvm.org/viewvc/llvm-project?rev=217490&view=rev
Log:
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.
Modified:
llvm/trunk/cmake/modules/Makefile
Modified: llvm/trunk/cmake/modules/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/Makefile?rev=217490&r1=217489&r2=217490&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/Makefile (original)
+++ llvm/trunk/cmake/modules/Makefile Wed Sep 10 06:09:23 2014
@@ -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
More information about the llvm-commits
mailing list