summaryrefslogtreecommitdiff
path: root/tools/diagtool/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/diagtool/Makefile')
-rw-r--r--tools/diagtool/Makefile10
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/diagtool/Makefile b/tools/diagtool/Makefile
index 6e3bcfc292b1..b629712e772b 100644
--- a/tools/diagtool/Makefile
+++ b/tools/diagtool/Makefile
@@ -1,4 +1,4 @@
-##===- tools/driver/Makefile -------------------------------*- Makefile -*-===##
+##===- tools/diagtool/Makefile -----------------------------*- Makefile -*-===##
#
# The LLVM Compiler Infrastructure
#
@@ -16,9 +16,11 @@ TOOL_NO_EXPORTS := 1
# Don't install this.
NO_INSTALL = 1
-LINK_COMPONENTS := support
-
-USEDLIBS = clangBasic.a
+include $(CLANG_LEVEL)/../../Makefile.config
+LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser support mc
+USEDLIBS = clangFrontend.a clangDriver.a clangSerialization.a clangParse.a \
+ clangSema.a clangAnalysis.a clangEdit.a clangAST.a clangLex.a \
+ clangBasic.a
include $(CLANG_LEVEL)/Makefile