[cfe-commits] r157846 - /cfe/trunk/tools/diagtool/Makefile

Jordan Rose jordan_rose at apple.com
Fri Jun 1 15:02:19 PDT 2012


Author: jrose
Date: Fri Jun  1 17:02:18 2012
New Revision: 157846

URL: http://llvm.org/viewvc/llvm-project?rev=157846&view=rev
Log:
[diagtool] Unbork Makefile build.

Modified:
    cfe/trunk/tools/diagtool/Makefile

Modified: cfe/trunk/tools/diagtool/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/diagtool/Makefile?rev=157846&r1=157845&r2=157846&view=diff
==============================================================================
--- cfe/trunk/tools/diagtool/Makefile (original)
+++ cfe/trunk/tools/diagtool/Makefile Fri Jun  1 17:02:18 2012
@@ -1,4 +1,4 @@
-##===- tools/driver/Makefile -------------------------------*- Makefile -*-===##
+##===- tools/diagtool/Makefile -----------------------------*- Makefile -*-===##
 #
 #                     The LLVM Compiler Infrastructure
 #
@@ -16,9 +16,16 @@
 # Don't install this.
 NO_INSTALL = 1
 
+# Include this here so we can get the configuration of the targets that have
+# been configured for construction. We have to do this early so we can set up
+# LINK_COMPONENTS before including Makefile.rules
+include $(CLANG_LEVEL)/../../Makefile.config
+
 LINK_COMPONENTS := support $(TARGETS_TO_BUILD)
 
-USEDLIBS = clangBasic.a clangFrontend.a
+# FIXME: diagtool should be much lighter than this.
+USEDLIBS = clangAST.a clangBasic.a clangDriver.a clangEdit.a clangFrontend.a \
+           clangLex.a clangParse.a clangSema.a clangSerialization.a
 
 include $(CLANG_LEVEL)/Makefile
 





More information about the cfe-commits mailing list