summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2012-08-10 06:10:58 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2012-08-10 06:10:58 +0000
commit5c10810754e2f15fbab2cf122f42658691517e5f (patch)
tree223d097bbaec65b5ea199bfce8bc13e749c43b9c
parent0deca6be79254ef883890e70fe2b5bf0482f36ba (diff)
downloadbcm5719-llvm-5c10810754e2f15fbab2cf122f42658691517e5f.tar.gz
bcm5719-llvm-5c10810754e2f15fbab2cf122f42658691517e5f.zip
c-arcmt-test, c-index-test: Appease Cygwin, to link to libclang.a, not clang.dll.
llvm-svn: 161655
-rw-r--r--clang/tools/c-arcmt-test/Makefile7
-rw-r--r--clang/tools/c-index-test/Makefile7
2 files changed, 12 insertions, 2 deletions
diff --git a/clang/tools/c-arcmt-test/Makefile b/clang/tools/c-arcmt-test/Makefile
index 818f648872d..b59afdac16d 100644
--- a/clang/tools/c-arcmt-test/Makefile
+++ b/clang/tools/c-arcmt-test/Makefile
@@ -16,7 +16,12 @@ TOOL_NO_EXPORTS = 1
# 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 \
diff --git a/clang/tools/c-index-test/Makefile b/clang/tools/c-index-test/Makefile
index eb4d7de271a..09eff0f095e 100644
--- a/clang/tools/c-index-test/Makefile
+++ b/clang/tools/c-index-test/Makefile
@@ -20,7 +20,12 @@ TOOL_NO_EXPORTS = 1
# 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 \
OpenPOWER on IntegriCloud