The top-level clang Makefile is #included into other Makefiles. (sigh) So we

can't have the logic here to add in the 'tools/{driver,libclang}' directories,
because they will be added in for ALL Makefiles which #include the top-level
one. Place the logic into the 'tools' Makefile.

llvm-svn: 165103
This commit is contained in:
Bill Wendling 2012-10-03 08:39:19 +00:00
parent 3c314990e6
commit 766d4d22ac
2 changed files with 6 additions and 2 deletions

View File

@ -28,8 +28,7 @@ ifeq ($(MAKECMDGOALS),libs-only)
OPTIONAL_DIRS :=
endif
ifeq ($(BUILD_CLANG_ONLY),YES)
DIRS := $(filter-out tools docs unittests, $(DIRS)) \
tools/driver tools/libclang
DIRS := $(filter-out docs unittests, $(DIRS))
OPTIONAL_DIRS :=
endif

View File

@ -17,4 +17,9 @@ DIRS := driver libclang c-index-test arcmt-test c-arcmt-test diagtool \
# Recurse into the extra repository of tools if present.
OPTIONAL_DIRS := extra
ifeq ($(BUILD_CLANG_ONLY),YES)
DIRS := tools/driver tools/libclang
OPTIONAL_DIRS :=
endif
include $(CLANG_LEVEL)/Makefile