Use an environment variable instead of what's in the make cmd goals.

llvm-svn: 164992
This commit is contained in:
Bill Wendling 2012-10-02 06:19:15 +00:00
parent 548e9a3e61
commit 7e5ef83cdb

View File

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