summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlp Toker <alp@nuanti.com>2014-01-08 13:00:32 +0000
committerAlp Toker <alp@nuanti.com>2014-01-08 13:00:32 +0000
commit8da8f6b67634340cc5872e462a5acb6695c4099f (patch)
tree32c0f32a421674252750e9fac9d222843512d98b /Makefile
parent4d4511374770b111252dc1525f9f02e831647261 (diff)
downloadclang-8da8f6b67634340cc5872e462a5acb6695c4099f.tar.gz
clang-8da8f6b67634340cc5872e462a5acb6695c4099f.tar.bz2
clang-8da8f6b67634340cc5872e462a5acb6695c4099f.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198764 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index cb2566a0a1..bbc521f4c0 100644
--- a/Makefile
+++ b/Makefile
@@ -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 :=