[llvm] b3a6d09 - Fix shlib builds for all lib/Target/*/TargetInfo libs
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 8 15:22:00 PDT 2021
Author: Reid Kleckner
Date: 2021-10-08T15:21:13-07:00
New Revision: b3a6d096d7c369f5290172c126bd699716bb383c
URL: https://github.com/llvm/llvm-project/commit/b3a6d096d7c369f5290172c126bd699716bb383c
DIFF: https://github.com/llvm/llvm-project/commit/b3a6d096d7c369f5290172c126bd699716bb383c.diff
LOG: Fix shlib builds for all lib/Target/*/TargetInfo libs
They all must depend on MC now that the target registry is in MC.
Also fix llvm-cxxdump
Added:
Modified:
llvm/lib/Target/AArch64/TargetInfo/CMakeLists.txt
llvm/lib/Target/AMDGPU/TargetInfo/CMakeLists.txt
llvm/lib/Target/ARC/TargetInfo/CMakeLists.txt
llvm/lib/Target/ARM/TargetInfo/CMakeLists.txt
llvm/lib/Target/AVR/TargetInfo/CMakeLists.txt
llvm/lib/Target/BPF/TargetInfo/CMakeLists.txt
llvm/lib/Target/CSKY/TargetInfo/CMakeLists.txt
llvm/lib/Target/Hexagon/TargetInfo/CMakeLists.txt
llvm/lib/Target/Lanai/TargetInfo/CMakeLists.txt
llvm/lib/Target/M68k/TargetInfo/CMakeLists.txt
llvm/lib/Target/MSP430/TargetInfo/CMakeLists.txt
llvm/lib/Target/Mips/TargetInfo/CMakeLists.txt
llvm/lib/Target/PowerPC/TargetInfo/CMakeLists.txt
llvm/lib/Target/RISCV/TargetInfo/CMakeLists.txt
llvm/lib/Target/Sparc/TargetInfo/CMakeLists.txt
llvm/lib/Target/SystemZ/TargetInfo/CMakeLists.txt
llvm/lib/Target/VE/TargetInfo/CMakeLists.txt
llvm/lib/Target/WebAssembly/TargetInfo/CMakeLists.txt
llvm/lib/Target/X86/TargetInfo/CMakeLists.txt
llvm/lib/Target/XCore/TargetInfo/CMakeLists.txt
llvm/tools/llvm-cxxdump/CMakeLists.txt
Removed:
################################################################################
diff --git a/llvm/lib/Target/AArch64/TargetInfo/CMakeLists.txt b/llvm/lib/Target/AArch64/TargetInfo/CMakeLists.txt
index 8adf3ef5d27fc..00308189151b5 100644
--- a/llvm/lib/Target/AArch64/TargetInfo/CMakeLists.txt
+++ b/llvm/lib/Target/AArch64/TargetInfo/CMakeLists.txt
@@ -4,6 +4,7 @@ add_llvm_component_library(LLVMAArch64Info
AArch64TargetInfo.cpp
LINK_COMPONENTS
+ MC
Support
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/AMDGPU/TargetInfo/CMakeLists.txt b/llvm/lib/Target/AMDGPU/TargetInfo/CMakeLists.txt
index f9cb5df80a39f..0954c7e229675 100644
--- a/llvm/lib/Target/AMDGPU/TargetInfo/CMakeLists.txt
+++ b/llvm/lib/Target/AMDGPU/TargetInfo/CMakeLists.txt
@@ -2,6 +2,7 @@ add_llvm_component_library(LLVMAMDGPUInfo
AMDGPUTargetInfo.cpp
LINK_COMPONENTS
+ MC
Support
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/ARC/TargetInfo/CMakeLists.txt b/llvm/lib/Target/ARC/TargetInfo/CMakeLists.txt
index 3524a09695e30..003d3be9d4615 100644
--- a/llvm/lib/Target/ARC/TargetInfo/CMakeLists.txt
+++ b/llvm/lib/Target/ARC/TargetInfo/CMakeLists.txt
@@ -2,6 +2,7 @@ add_llvm_component_library(LLVMARCInfo
ARCTargetInfo.cpp
LINK_COMPONENTS
+ MC
Support
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/ARM/TargetInfo/CMakeLists.txt b/llvm/lib/Target/ARM/TargetInfo/CMakeLists.txt
index bdc2ee5e4d38f..677283d232390 100644
--- a/llvm/lib/Target/ARM/TargetInfo/CMakeLists.txt
+++ b/llvm/lib/Target/ARM/TargetInfo/CMakeLists.txt
@@ -2,6 +2,7 @@ add_llvm_component_library(LLVMARMInfo
ARMTargetInfo.cpp
LINK_COMPONENTS
+ MC
Support
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/AVR/TargetInfo/CMakeLists.txt b/llvm/lib/Target/AVR/TargetInfo/CMakeLists.txt
index 97c118a7d6b90..5d76786671f07 100644
--- a/llvm/lib/Target/AVR/TargetInfo/CMakeLists.txt
+++ b/llvm/lib/Target/AVR/TargetInfo/CMakeLists.txt
@@ -5,6 +5,7 @@ add_llvm_component_library(LLVMAVRInfo
AVRTargetInfo.cpp
LINK_COMPONENTS
+ MC
Support
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/BPF/TargetInfo/CMakeLists.txt b/llvm/lib/Target/BPF/TargetInfo/CMakeLists.txt
index 809b564601d40..344248bf0b8a3 100644
--- a/llvm/lib/Target/BPF/TargetInfo/CMakeLists.txt
+++ b/llvm/lib/Target/BPF/TargetInfo/CMakeLists.txt
@@ -2,6 +2,7 @@ add_llvm_component_library(LLVMBPFInfo
BPFTargetInfo.cpp
LINK_COMPONENTS
+ MC
Support
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/CSKY/TargetInfo/CMakeLists.txt b/llvm/lib/Target/CSKY/TargetInfo/CMakeLists.txt
index 11e4e179b4e1b..4b12228f121b3 100644
--- a/llvm/lib/Target/CSKY/TargetInfo/CMakeLists.txt
+++ b/llvm/lib/Target/CSKY/TargetInfo/CMakeLists.txt
@@ -2,6 +2,7 @@ add_llvm_component_library(LLVMCSKYInfo
CSKYTargetInfo.cpp
LINK_COMPONENTS
+ MC
Support
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/Hexagon/TargetInfo/CMakeLists.txt b/llvm/lib/Target/Hexagon/TargetInfo/CMakeLists.txt
index fc96a618de271..c0aca34f54148 100644
--- a/llvm/lib/Target/Hexagon/TargetInfo/CMakeLists.txt
+++ b/llvm/lib/Target/Hexagon/TargetInfo/CMakeLists.txt
@@ -2,6 +2,7 @@ add_llvm_component_library(LLVMHexagonInfo
HexagonTargetInfo.cpp
LINK_COMPONENTS
+ MC
Support
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/Lanai/TargetInfo/CMakeLists.txt b/llvm/lib/Target/Lanai/TargetInfo/CMakeLists.txt
index 96b2329ca4aae..bee021466640a 100644
--- a/llvm/lib/Target/Lanai/TargetInfo/CMakeLists.txt
+++ b/llvm/lib/Target/Lanai/TargetInfo/CMakeLists.txt
@@ -2,6 +2,7 @@ add_llvm_component_library(LLVMLanaiInfo
LanaiTargetInfo.cpp
LINK_COMPONENTS
+ MC
Support
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/M68k/TargetInfo/CMakeLists.txt b/llvm/lib/Target/M68k/TargetInfo/CMakeLists.txt
index d376dcd7d12b4..64507d4feac46 100644
--- a/llvm/lib/Target/M68k/TargetInfo/CMakeLists.txt
+++ b/llvm/lib/Target/M68k/TargetInfo/CMakeLists.txt
@@ -2,6 +2,7 @@ add_llvm_component_library(LLVMM68kInfo
M68kTargetInfo.cpp
LINK_COMPONENTS
+ MC
Support
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/MSP430/TargetInfo/CMakeLists.txt b/llvm/lib/Target/MSP430/TargetInfo/CMakeLists.txt
index 40899ed2e5a5d..a8c8740ef7d83 100644
--- a/llvm/lib/Target/MSP430/TargetInfo/CMakeLists.txt
+++ b/llvm/lib/Target/MSP430/TargetInfo/CMakeLists.txt
@@ -2,6 +2,7 @@ add_llvm_component_library(LLVMMSP430Info
MSP430TargetInfo.cpp
LINK_COMPONENTS
+ MC
Support
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/Mips/TargetInfo/CMakeLists.txt b/llvm/lib/Target/Mips/TargetInfo/CMakeLists.txt
index 9d8f0b5327040..ea18209b1df9c 100644
--- a/llvm/lib/Target/Mips/TargetInfo/CMakeLists.txt
+++ b/llvm/lib/Target/Mips/TargetInfo/CMakeLists.txt
@@ -2,6 +2,7 @@ add_llvm_component_library(LLVMMipsInfo
MipsTargetInfo.cpp
LINK_COMPONENTS
+ MC
Support
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/PowerPC/TargetInfo/CMakeLists.txt b/llvm/lib/Target/PowerPC/TargetInfo/CMakeLists.txt
index c182f89138121..f4de1374e30fd 100644
--- a/llvm/lib/Target/PowerPC/TargetInfo/CMakeLists.txt
+++ b/llvm/lib/Target/PowerPC/TargetInfo/CMakeLists.txt
@@ -2,6 +2,7 @@ add_llvm_component_library(LLVMPowerPCInfo
PowerPCTargetInfo.cpp
LINK_COMPONENTS
+ MC
Support
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/RISCV/TargetInfo/CMakeLists.txt b/llvm/lib/Target/RISCV/TargetInfo/CMakeLists.txt
index f760c639d54d3..aae3e7742c3cd 100644
--- a/llvm/lib/Target/RISCV/TargetInfo/CMakeLists.txt
+++ b/llvm/lib/Target/RISCV/TargetInfo/CMakeLists.txt
@@ -2,6 +2,7 @@ add_llvm_component_library(LLVMRISCVInfo
RISCVTargetInfo.cpp
LINK_COMPONENTS
+ MC
Support
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/Sparc/TargetInfo/CMakeLists.txt b/llvm/lib/Target/Sparc/TargetInfo/CMakeLists.txt
index 39d2974c4ef11..b15cd43086772 100644
--- a/llvm/lib/Target/Sparc/TargetInfo/CMakeLists.txt
+++ b/llvm/lib/Target/Sparc/TargetInfo/CMakeLists.txt
@@ -2,6 +2,7 @@ add_llvm_component_library(LLVMSparcInfo
SparcTargetInfo.cpp
LINK_COMPONENTS
+ MC
Support
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/SystemZ/TargetInfo/CMakeLists.txt b/llvm/lib/Target/SystemZ/TargetInfo/CMakeLists.txt
index 615f84f489174..072e1cdd5f519 100644
--- a/llvm/lib/Target/SystemZ/TargetInfo/CMakeLists.txt
+++ b/llvm/lib/Target/SystemZ/TargetInfo/CMakeLists.txt
@@ -2,6 +2,7 @@ add_llvm_component_library(LLVMSystemZInfo
SystemZTargetInfo.cpp
LINK_COMPONENTS
+ MC
Support
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/VE/TargetInfo/CMakeLists.txt b/llvm/lib/Target/VE/TargetInfo/CMakeLists.txt
index 3e5a027a6cecf..13d6d0013a03f 100644
--- a/llvm/lib/Target/VE/TargetInfo/CMakeLists.txt
+++ b/llvm/lib/Target/VE/TargetInfo/CMakeLists.txt
@@ -2,6 +2,7 @@ add_llvm_component_library(LLVMVEInfo
VETargetInfo.cpp
LINK_COMPONENTS
+ MC
Support
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/WebAssembly/TargetInfo/CMakeLists.txt b/llvm/lib/Target/WebAssembly/TargetInfo/CMakeLists.txt
index f9f5f2f9a6179..e56e67b22751a 100644
--- a/llvm/lib/Target/WebAssembly/TargetInfo/CMakeLists.txt
+++ b/llvm/lib/Target/WebAssembly/TargetInfo/CMakeLists.txt
@@ -4,6 +4,7 @@ add_llvm_component_library(LLVMWebAssemblyInfo
WebAssemblyTargetInfo.cpp
LINK_COMPONENTS
+ MC
Support
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/X86/TargetInfo/CMakeLists.txt b/llvm/lib/Target/X86/TargetInfo/CMakeLists.txt
index 6a7b67118e839..3d6ccef12813d 100644
--- a/llvm/lib/Target/X86/TargetInfo/CMakeLists.txt
+++ b/llvm/lib/Target/X86/TargetInfo/CMakeLists.txt
@@ -2,6 +2,7 @@ add_llvm_component_library(LLVMX86Info
X86TargetInfo.cpp
LINK_COMPONENTS
+ MC
Support
ADD_TO_COMPONENT
diff --git a/llvm/lib/Target/XCore/TargetInfo/CMakeLists.txt b/llvm/lib/Target/XCore/TargetInfo/CMakeLists.txt
index f3af86a21b34f..911611ce8f06f 100644
--- a/llvm/lib/Target/XCore/TargetInfo/CMakeLists.txt
+++ b/llvm/lib/Target/XCore/TargetInfo/CMakeLists.txt
@@ -2,6 +2,7 @@ add_llvm_component_library(LLVMXCoreInfo
XCoreTargetInfo.cpp
LINK_COMPONENTS
+ MC
Support
ADD_TO_COMPONENT
diff --git a/llvm/tools/llvm-cxxdump/CMakeLists.txt b/llvm/tools/llvm-cxxdump/CMakeLists.txt
index 519e728e87b6f..afae8359ca50d 100644
--- a/llvm/tools/llvm-cxxdump/CMakeLists.txt
+++ b/llvm/tools/llvm-cxxdump/CMakeLists.txt
@@ -1,5 +1,6 @@
set(LLVM_LINK_COMPONENTS
AllTargetsInfos
+ MC
Object
Support
)
More information about the llvm-commits
mailing list