From fa1d30ddb1bbb16d8c268f79890ac39101915b5c Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Wed, 8 Aug 2012 16:27:29 +0000 Subject: [PATCH] Add various MC components to clang build to support MS-style inline assembly. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161498 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/arcmt-test/Makefile | 3 ++- tools/clang-check/Makefile | 3 ++- tools/diagtool/Makefile | 4 ++-- tools/libclang/Makefile | 3 ++- unittests/ASTMatchers/Makefile | 3 ++- unittests/Frontend/Makefile | 3 ++- unittests/Tooling/Makefile | 3 ++- 7 files changed, 14 insertions(+), 8 deletions(-) diff --git a/tools/arcmt-test/Makefile b/tools/arcmt-test/Makefile index 84c4dc2b66..719da75869 100644 --- a/tools/arcmt-test/Makefile +++ b/tools/arcmt-test/Makefile @@ -16,7 +16,8 @@ TOOL_NO_EXPORTS = 1 # Don't install this. It is used for tests. NO_INSTALL = 1 -LINK_COMPONENTS := support mc +include $(CLANG_LEVEL)/../../Makefile.config +LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser support mc USEDLIBS = clangARCMigrate.a clangRewrite.a \ clangFrontend.a clangDriver.a clangSerialization.a clangParse.a \ clangSema.a clangEdit.a clangAnalysis.a clangAST.a clangLex.a \ diff --git a/tools/clang-check/Makefile b/tools/clang-check/Makefile index 0a60a19438..6775c65a64 100644 --- a/tools/clang-check/Makefile +++ b/tools/clang-check/Makefile @@ -14,7 +14,8 @@ TOOLNAME = clang-check # No plugins, optimize startup time. TOOL_NO_EXPORTS = 1 -LINK_COMPONENTS := support mc +include $(CLANG_LEVEL)/../../Makefile.config +LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser support mc USEDLIBS = clangFrontend.a clangSerialization.a clangDriver.a \ clangTooling.a clangParse.a clangSema.a clangAnalysis.a \ clangEdit.a clangAST.a clangLex.a clangBasic.a diff --git a/tools/diagtool/Makefile b/tools/diagtool/Makefile index 8af4cef643..b629712e77 100644 --- a/tools/diagtool/Makefile +++ b/tools/diagtool/Makefile @@ -16,8 +16,8 @@ TOOL_NO_EXPORTS := 1 # Don't install this. NO_INSTALL = 1 -LINK_COMPONENTS := support mc - +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 diff --git a/tools/libclang/Makefile b/tools/libclang/Makefile index 3f6774baf5..975d3812d1 100644 --- a/tools/libclang/Makefile +++ b/tools/libclang/Makefile @@ -15,7 +15,8 @@ EXPORTED_SYMBOL_FILE = $(PROJ_SRC_DIR)/libclang.exports LINK_LIBS_IN_SHARED = 1 SHARED_LIBRARY = 1 -LINK_COMPONENTS := support mc +include $(CLANG_LEVEL)/../../Makefile.config +LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser support mc USEDLIBS = clangARCMigrate.a clangRewrite.a clangFrontend.a clangDriver.a \ clangSerialization.a \ clangParse.a clangSema.a clangEdit.a clangAnalysis.a \ diff --git a/unittests/ASTMatchers/Makefile b/unittests/ASTMatchers/Makefile index 8718dde7c5..d3e4aa37ce 100644 --- a/unittests/ASTMatchers/Makefile +++ b/unittests/ASTMatchers/Makefile @@ -10,7 +10,8 @@ CLANG_LEVEL = ../.. TESTNAME = ASTMatchers -LINK_COMPONENTS := support mc +include $(CLANG_LEVEL)/../../Makefile.config +LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser support mc USEDLIBS = clangTooling.a clangFrontend.a clangSerialization.a clangDriver.a \ clangRewrite.a clangParse.a clangSema.a clangAnalysis.a \ clangAST.a clangASTMatchers.a clangLex.a clangBasic.a clangEdit.a diff --git a/unittests/Frontend/Makefile b/unittests/Frontend/Makefile index f3e6396658..bfc3494320 100644 --- a/unittests/Frontend/Makefile +++ b/unittests/Frontend/Makefile @@ -9,7 +9,8 @@ CLANG_LEVEL = ../.. TESTNAME = Frontend -LINK_COMPONENTS := support mc +include $(CLANG_LEVEL)/../../Makefile.config +LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser support mc USEDLIBS = clangFrontendTool.a clangFrontend.a clangDriver.a \ clangSerialization.a clangCodeGen.a clangParse.a clangSema.a \ clangStaticAnalyzerCheckers.a clangStaticAnalyzerCore.a \ diff --git a/unittests/Tooling/Makefile b/unittests/Tooling/Makefile index f0a75ae373..5d2224d40e 100644 --- a/unittests/Tooling/Makefile +++ b/unittests/Tooling/Makefile @@ -9,7 +9,8 @@ CLANG_LEVEL = ../.. TESTNAME = Tooling -LINK_COMPONENTS := support mc +include $(CLANG_LEVEL)/../../Makefile.config +LINK_COMPONENTS := $(TARGETS_TO_BUILD) asmparser support mc USEDLIBS = clangTooling.a clangFrontend.a clangSerialization.a clangDriver.a \ clangParse.a clangRewrite.a clangSema.a clangAnalysis.a clangEdit.a \ clangAST.a clangASTMatchers.a clangLex.a clangBasic.a -- 2.40.0