From c7a815bb3a1ab2228c9520209e1252158d20eaac Mon Sep 17 00:00:00 2001 From: Greg Fitzgerald Date: Fri, 16 Jan 2015 23:34:41 +0000 Subject: [PATCH] Add LLVM_LINK_COMPONENTS for the shared object build Differential Revision: http://reviews.llvm.org/D7023 From: Greg Fitzgerald llvm-svn: 226346 --- lld/lib/Config/CMakeLists.txt | 2 ++ lld/lib/Driver/CMakeLists.txt | 2 ++ lld/lib/Passes/CMakeLists.txt | 2 ++ lld/lib/ReaderWriter/CMakeLists.txt | 2 +- lld/lib/ReaderWriter/ELF/AArch64/CMakeLists.txt | 2 ++ lld/lib/ReaderWriter/ELF/Hexagon/CMakeLists.txt | 2 ++ lld/lib/ReaderWriter/ELF/Mips/CMakeLists.txt | 2 ++ lld/lib/ReaderWriter/ELF/PPC/CMakeLists.txt | 2 ++ lld/lib/ReaderWriter/ELF/X86/CMakeLists.txt | 2 ++ lld/lib/ReaderWriter/ELF/X86_64/CMakeLists.txt | 2 ++ lld/lib/ReaderWriter/MachO/CMakeLists.txt | 2 ++ lld/lib/ReaderWriter/Native/CMakeLists.txt | 2 ++ lld/lib/ReaderWriter/PECOFF/CMakeLists.txt | 2 ++ lld/lib/ReaderWriter/YAML/CMakeLists.txt | 2 ++ 14 files changed, 27 insertions(+), 1 deletion(-) diff --git a/lld/lib/Config/CMakeLists.txt b/lld/lib/Config/CMakeLists.txt index d54bec8..f749f5d 100644 --- a/lld/lib/Config/CMakeLists.txt +++ b/lld/lib/Config/CMakeLists.txt @@ -1,3 +1,5 @@ +set(LLVM_LINK_COMPONENTS support) + add_lld_library(lldConfig Version.cpp ) diff --git a/lld/lib/Driver/CMakeLists.txt b/lld/lib/Driver/CMakeLists.txt index 2b88498..6ff4c59 100644 --- a/lld/lib/Driver/CMakeLists.txt +++ b/lld/lib/Driver/CMakeLists.txt @@ -10,6 +10,8 @@ set(LLVM_TARGET_DEFINITIONS WinLinkOptions.td) tablegen(LLVM WinLinkOptions.inc -gen-opt-parser-defs) add_public_tablegen_target(DriverOptionsTableGen) +set(LLVM_LINK_COMPONENTS object option support) + add_lld_library(lldDriver CoreDriver.cpp DarwinLdDriver.cpp diff --git a/lld/lib/Passes/CMakeLists.txt b/lld/lib/Passes/CMakeLists.txt index 20c8618..f4d9353 100644 --- a/lld/lib/Passes/CMakeLists.txt +++ b/lld/lib/Passes/CMakeLists.txt @@ -1,3 +1,5 @@ +set(LLVM_LINK_COMPONENTS support) + add_lld_library(lldPasses LayoutPass.cpp RoundTripNativePass.cpp diff --git a/lld/lib/ReaderWriter/CMakeLists.txt b/lld/lib/ReaderWriter/CMakeLists.txt index 587d859..f49baed 100644 --- a/lld/lib/ReaderWriter/CMakeLists.txt +++ b/lld/lib/ReaderWriter/CMakeLists.txt @@ -4,7 +4,7 @@ add_subdirectory(Native) add_subdirectory(PECOFF) add_subdirectory(YAML) -set(LLVM_LINK_COMPONENTS object) +set(LLVM_LINK_COMPONENTS object support) add_lld_library(lldReaderWriter CoreLinkingContext.cpp diff --git a/lld/lib/ReaderWriter/ELF/AArch64/CMakeLists.txt b/lld/lib/ReaderWriter/ELF/AArch64/CMakeLists.txt index 7a46537..0864bd4 100644 --- a/lld/lib/ReaderWriter/ELF/AArch64/CMakeLists.txt +++ b/lld/lib/ReaderWriter/ELF/AArch64/CMakeLists.txt @@ -1,3 +1,5 @@ +set(LLVM_LINK_COMPONENTS support) + add_lld_library(lldAArch64ELFTarget AArch64LinkingContext.cpp AArch64TargetHandler.cpp diff --git a/lld/lib/ReaderWriter/ELF/Hexagon/CMakeLists.txt b/lld/lib/ReaderWriter/ELF/Hexagon/CMakeLists.txt index 0789cb5..59a2b95 100644 --- a/lld/lib/ReaderWriter/ELF/Hexagon/CMakeLists.txt +++ b/lld/lib/ReaderWriter/ELF/Hexagon/CMakeLists.txt @@ -1,3 +1,5 @@ +set(LLVM_LINK_COMPONENTS support) + add_lld_library(lldHexagonELFTarget HexagonLinkingContext.cpp HexagonRelocationHandler.cpp diff --git a/lld/lib/ReaderWriter/ELF/Mips/CMakeLists.txt b/lld/lib/ReaderWriter/ELF/Mips/CMakeLists.txt index 1b38c6f..dfb0f81 100644 --- a/lld/lib/ReaderWriter/ELF/Mips/CMakeLists.txt +++ b/lld/lib/ReaderWriter/ELF/Mips/CMakeLists.txt @@ -1,3 +1,5 @@ +set(LLVM_LINK_COMPONENTS support) + add_lld_library(lldMipsELFTarget MipsCtorsOrderPass.cpp MipsELFFlagsMerger.cpp diff --git a/lld/lib/ReaderWriter/ELF/PPC/CMakeLists.txt b/lld/lib/ReaderWriter/ELF/PPC/CMakeLists.txt index 03e1c57..6d16e0c 100644 --- a/lld/lib/ReaderWriter/ELF/PPC/CMakeLists.txt +++ b/lld/lib/ReaderWriter/ELF/PPC/CMakeLists.txt @@ -1,3 +1,5 @@ +set(LLVM_LINK_COMPONENTS support) + add_lld_library(lldPPCELFTarget PPCLinkingContext.cpp PPCTargetHandler.cpp diff --git a/lld/lib/ReaderWriter/ELF/X86/CMakeLists.txt b/lld/lib/ReaderWriter/ELF/X86/CMakeLists.txt index 9abf41c..f032031 100644 --- a/lld/lib/ReaderWriter/ELF/X86/CMakeLists.txt +++ b/lld/lib/ReaderWriter/ELF/X86/CMakeLists.txt @@ -1,3 +1,5 @@ +set(LLVM_LINK_COMPONENTS support) + add_lld_library(lldX86ELFTarget X86LinkingContext.cpp X86TargetHandler.cpp diff --git a/lld/lib/ReaderWriter/ELF/X86_64/CMakeLists.txt b/lld/lib/ReaderWriter/ELF/X86_64/CMakeLists.txt index 43ee78f..4f0c4b5 100644 --- a/lld/lib/ReaderWriter/ELF/X86_64/CMakeLists.txt +++ b/lld/lib/ReaderWriter/ELF/X86_64/CMakeLists.txt @@ -1,3 +1,5 @@ +set(LLVM_LINK_COMPONENTS support) + add_lld_library(lldX86_64ELFTarget X86_64LinkingContext.cpp X86_64TargetHandler.cpp diff --git a/lld/lib/ReaderWriter/MachO/CMakeLists.txt b/lld/lib/ReaderWriter/MachO/CMakeLists.txt index 3a84c67..aedde51 100644 --- a/lld/lib/ReaderWriter/MachO/CMakeLists.txt +++ b/lld/lib/ReaderWriter/MachO/CMakeLists.txt @@ -1,3 +1,5 @@ +set(LLVM_LINK_COMPONENTS support) + add_lld_library(lldMachO ArchHandler.cpp ArchHandler_arm.cpp diff --git a/lld/lib/ReaderWriter/Native/CMakeLists.txt b/lld/lib/ReaderWriter/Native/CMakeLists.txt index 2f34927..9789823 100644 --- a/lld/lib/ReaderWriter/Native/CMakeLists.txt +++ b/lld/lib/ReaderWriter/Native/CMakeLists.txt @@ -1,3 +1,5 @@ +set(LLVM_LINK_COMPONENTS support) + add_lld_library(lldNative ReaderNative.cpp WriterNative.cpp diff --git a/lld/lib/ReaderWriter/PECOFF/CMakeLists.txt b/lld/lib/ReaderWriter/PECOFF/CMakeLists.txt index 930f8f8..cb98f1a 100644 --- a/lld/lib/ReaderWriter/PECOFF/CMakeLists.txt +++ b/lld/lib/ReaderWriter/PECOFF/CMakeLists.txt @@ -1,3 +1,5 @@ +set(LLVM_LINK_COMPONENTS object support) + add_lld_library(lldPECOFF EdataPass.cpp IdataPass.cpp diff --git a/lld/lib/ReaderWriter/YAML/CMakeLists.txt b/lld/lib/ReaderWriter/YAML/CMakeLists.txt index 0221999..1ac4bad 100644 --- a/lld/lib/ReaderWriter/YAML/CMakeLists.txt +++ b/lld/lib/ReaderWriter/YAML/CMakeLists.txt @@ -1,3 +1,5 @@ +set(LLVM_LINK_COMPONENTS support) + add_lld_library(lldYAML ReaderWriterYAML.cpp ) -- 2.7.4