r198764 - Define ENABLE_CLANG_EXAMPLES instead of relying on BUILD_EXAMPLES
Alp Toker
alp at nuanti.com
Wed Jan 8 05:00:32 PST 2014
Author: alp
Date: Wed Jan 8 07:00:32 2014
New Revision: 198764
URL: http://llvm.org/viewvc/llvm-project?rev=198764&view=rev
Log:
Define ENABLE_CLANG_EXAMPLES instead of relying on BUILD_EXAMPLES
This is a further build fix attempt for r198747 on some Makefile builders where
the value wasn't set at all.
Modified:
cfe/trunk/Makefile
cfe/trunk/test/Makefile
Modified: cfe/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Makefile?rev=198764&r1=198763&r2=198764&view=diff
==============================================================================
--- cfe/trunk/Makefile (original)
+++ cfe/trunk/Makefile Wed Jan 8 07:00:32 2014
@@ -23,6 +23,12 @@ ifeq ($(BUILD_EXAMPLES),1)
endif
endif
+ifeq ($(BUILD_EXAMPLES),1)
+ ENABLE_CLANG_EXAMPLES := 1
+else
+ ENABLE_CLANG_EXAMPLES := 0
+endif
+
ifeq ($(MAKECMDGOALS),libs-only)
DIRS := $(filter-out tools docs, $(DIRS))
OPTIONAL_DIRS :=
Modified: cfe/trunk/test/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Makefile?rev=198764&r1=198763&r2=198764&view=diff
==============================================================================
--- cfe/trunk/test/Makefile (original)
+++ cfe/trunk/test/Makefile Wed Jan 8 07:00:32 2014
@@ -49,7 +49,7 @@ lit.site.cfg: FORCE
@$(ECHOPATH) s=@ENABLE_CLANG_ARCMT@=$(ENABLE_CLANG_ARCMT)=g >> lit.tmp
@$(ECHOPATH) s=@ENABLE_CLANG_REWRITER@=$(ENABLE_CLANG_REWRITER)=g >> lit.tmp
@$(ECHOPATH) s=@ENABLE_CLANG_STATIC_ANALYZER@=$(ENABLE_CLANG_STATIC_ANALYZER)=g >> lit.tmp
- @$(ECHOPATH) s=@ENABLE_CLANG_EXAMPLES@=$(BUILD_EXAMPLES)=g >> lit.tmp
+ @$(ECHOPATH) s=@ENABLE_CLANG_EXAMPLES@=$(ENABLE_CLANG_EXAMPLES)=g >> lit.tmp
@sed -f lit.tmp $(PROJ_SRC_DIR)/lit.site.cfg.in > $@
@-rm -f lit.tmp
More information about the cfe-commits
mailing list