Skip to content
Snippets Groups Projects
Commit 2bf89808 authored by Bill Wendling's avatar Bill Wendling
Browse files

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.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165103 91177308-0d34-0410-b5e6-96231b3b80d8
parent 4f0b2d1e
Branches
No related tags found
No related merge requests found
...@@ -28,8 +28,7 @@ ifeq ($(MAKECMDGOALS),libs-only) ...@@ -28,8 +28,7 @@ ifeq ($(MAKECMDGOALS),libs-only)
OPTIONAL_DIRS := OPTIONAL_DIRS :=
endif endif
ifeq ($(BUILD_CLANG_ONLY),YES) ifeq ($(BUILD_CLANG_ONLY),YES)
DIRS := $(filter-out tools docs unittests, $(DIRS)) \ DIRS := $(filter-out docs unittests, $(DIRS))
tools/driver tools/libclang
OPTIONAL_DIRS := OPTIONAL_DIRS :=
endif endif
......
...@@ -17,4 +17,9 @@ DIRS := driver libclang c-index-test arcmt-test c-arcmt-test diagtool \ ...@@ -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. # Recurse into the extra repository of tools if present.
OPTIONAL_DIRS := extra OPTIONAL_DIRS := extra
ifeq ($(BUILD_CLANG_ONLY),YES)
DIRS := tools/driver tools/libclang
OPTIONAL_DIRS :=
endif
include $(CLANG_LEVEL)/Makefile include $(CLANG_LEVEL)/Makefile
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment