[cfe-commits] r161655 - in /cfe/trunk/tools: c-arcmt-test/Makefile c-index-test/Makefile

NAKAMURA Takumi geek4civic at gmail.com
Thu Aug 9 23:10:58 PDT 2012


Author: chapuni
Date: Fri Aug 10 01:10:58 2012
New Revision: 161655

URL: http://llvm.org/viewvc/llvm-project?rev=161655&view=rev
Log:
c-arcmt-test, c-index-test: Appease Cygwin, to link to libclang.a, not clang.dll.

Modified:
    cfe/trunk/tools/c-arcmt-test/Makefile
    cfe/trunk/tools/c-index-test/Makefile

Modified: cfe/trunk/tools/c-arcmt-test/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-arcmt-test/Makefile?rev=161655&r1=161654&r2=161655&view=diff
==============================================================================
--- cfe/trunk/tools/c-arcmt-test/Makefile (original)
+++ cfe/trunk/tools/c-arcmt-test/Makefile Fri Aug 10 01:10:58 2012
@@ -16,7 +16,12 @@
 # Don't install this. It is used for tests.
 NO_INSTALL = 1
 
-LINK_COMPONENTS := support mc
+# 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 := $(TARGETS_TO_BUILD) asmparser support mc
 USEDLIBS = clang.a clangARCMigrate.a clangRewrite.a \
 	   clangFrontend.a clangDriver.a \
 	   clangSerialization.a clangParse.a clangSema.a \

Modified: cfe/trunk/tools/c-index-test/Makefile
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/c-index-test/Makefile?rev=161655&r1=161654&r2=161655&view=diff
==============================================================================
--- cfe/trunk/tools/c-index-test/Makefile (original)
+++ cfe/trunk/tools/c-index-test/Makefile Fri Aug 10 01:10:58 2012
@@ -20,7 +20,12 @@
 # Don't install this. It is used for tests.
 NO_INSTALL = 1
 
-LINK_COMPONENTS := support mc
+# 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 := $(TARGETS_TO_BUILD) asmparser support mc
 USEDLIBS = clang.a clangFrontend.a clangDriver.a \
 	   clangTooling.a \
 	   clangSerialization.a clangParse.a clangSema.a \





More information about the cfe-commits mailing list