Skip to content

Commit

Permalink
[cmake] Explicitly mark libraries defined in lib/ as "Component Libra…
Browse files Browse the repository at this point in the history
…ries"

Summary:
Most libraries are defined in the lib/ directory but there are also a
few libraries defined in tools/ e.g. libLLVM, libLTO.  I'm defining
"Component Libraries" as libraries defined in lib/ that may be included in
libLLVM.so.  Explicitly marking the libraries in lib/ as component
libraries allows us to remove some fragile checks that attempt to
differentiate between lib/ libraries and tools/ libraires:

1. In tools/llvm-shlib, because
llvm_map_components_to_libnames(LIB_NAMES "all") returned a list of
all libraries defined in the whole project, there was custom code
needed to filter out libraries defined in tools/, none of which should
be included in libLLVM.so.  This code assumed that any library
defined as static was from lib/ and everything else should be
excluded.

With this change, llvm_map_components_to_libnames(LIB_NAMES, "all")
only returns libraries that have been added to the LLVM_COMPONENT_LIBS
global cmake property, so this custom filtering logic can be removed.
Doing this also fixes the build with BUILD_SHARED_LIBS=ON
and LLVM_BUILD_LLVM_DYLIB=ON.

2. There was some code in llvm_add_library that assumed that
libraries defined in lib/ would not have LLVM_LINK_COMPONENTS or
ARG_LINK_COMPONENTS set.  This is only true because libraries
defined lib lib/ use LLVMBuild.txt and don't set these values.
This code has been fixed now to check if the library has been
explicitly marked as a component library, which should now make it
easier to remove LLVMBuild at some point in the future.

I have tested this patch on Windows, MacOS and Linux with release builds
and the following combinations of CMake options:

- "" (No options)
- -DLLVM_BUILD_LLVM_DYLIB=ON
- -DLLVM_LINK_LLVM_DYLIB=ON
- -DBUILD_SHARED_LIBS=ON
- -DBUILD_SHARED_LIBS=ON -DLLVM_BUILD_LLVM_DYLIB=ON
- -DBUILD_SHARED_LIBS=ON -DLLVM_LINK_LLVM_DYLIB=ON

Reviewers: beanz, smeenai, compnerd, phosek

Reviewed By: beanz

Subscribers: wuzish, jholewinski, arsenm, dschuff, jyknight, dylanmckay, sdardis, nemanjai, jvesely, nhaehnle, mgorny, mehdi_amini, sbc100, jgravelle-google, hiraditya, aheejin, fedor.sergeev, asb, rbar, johnrusso, simoncook, apazos, sabuasal, niosHD, jrtc27, MaskRay, zzheng, edward-jones, atanasyan, steven_wu, rogfer01, MartinMosbeck, brucehoult, the_o, dexonsmith, PkmX, jocewei, jsji, dang, Jim, lenary, s.egerton, pzheng, sameer.abuasal, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70179
  • Loading branch information
tstellar committed Nov 21, 2019
1 parent aaea248 commit ab41180
Show file tree
Hide file tree
Showing 139 changed files with 156 additions and 154 deletions.
19 changes: 16 additions & 3 deletions llvm/cmake/modules/AddLLVM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,14 @@ endfunction(set_windows_version_resource_properties)
# Suppress default RPATH settings in shared libraries.
# PLUGIN_TOOL
# The tool (i.e. cmake target) that this plugin will link against
# COMPONENT_LIB
# This is used to specify that this is a component library of
# LLVM which means that the source resides in llvm/lib/ and it is a
# candidate for inclusion into libLLVM.so.
# )
function(llvm_add_library name)
cmake_parse_arguments(ARG
"MODULE;SHARED;STATIC;OBJECT;DISABLE_LLVM_LINK_LLVM_DYLIB;SONAME;NO_INSTALL_RPATH"
"MODULE;SHARED;STATIC;OBJECT;DISABLE_LLVM_LINK_LLVM_DYLIB;SONAME;NO_INSTALL_RPATH;COMPONENT_LIB"
"OUTPUT_NAME;PLUGIN_TOOL;ENTITLEMENTS;BUNDLE_PATH"
"ADDITIONAL_HEADERS;DEPENDS;LINK_COMPONENTS;LINK_LIBS;OBJLIBS"
${ARGN})
Expand Down Expand Up @@ -486,6 +490,11 @@ function(llvm_add_library name)
add_library(${name} STATIC ${ALL_FILES})
endif()

if(ARG_COMPONENT_LIB)
set_target_properties(${name} PROPERTIES LLVM_COMPONENT TRUE)
set_property(GLOBAL APPEND PROPERTY LLVM_COMPONENT_LIBS ${name})
endif()

if(NOT ARG_NO_INSTALL_RPATH)
if(ARG_MODULE OR ARG_SHARED)
llvm_setup_rpath(${name})
Expand Down Expand Up @@ -570,7 +579,7 @@ function(llvm_add_library name)
if(ARG_MODULE AND LLVM_EXPORT_SYMBOLS_FOR_PLUGINS AND ARG_PLUGIN_TOOL AND (WIN32 OR CYGWIN))
# On DLL platforms symbols are imported from the tool by linking against it.
set(llvm_libs ${ARG_PLUGIN_TOOL})
elseif (DEFINED LLVM_LINK_COMPONENTS OR DEFINED ARG_LINK_COMPONENTS)
elseif (NOT ARG_COMPONENT_LIB)
if (LLVM_LINK_LLVM_DYLIB AND NOT ARG_DISABLE_LLVM_LINK_LLVM_DYLIB)
set(llvm_libs LLVM)
else()
Expand Down Expand Up @@ -669,6 +678,10 @@ function(add_llvm_install_targets target)
endif()
endfunction()

function(add_llvm_component_library name)
add_llvm_library(${name} COMPONENT_LIB ${ARGN})
endfunction()

macro(add_llvm_library name)
cmake_parse_arguments(ARG
"SHARED;BUILDTREE_ONLY;MODULE;INSTALL_WITH_TOOLCHAIN"
Expand Down Expand Up @@ -1027,7 +1040,7 @@ macro(add_llvm_target target_name)
include_directories(BEFORE
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_SOURCE_DIR})
add_llvm_library(LLVM${target_name} ${ARGN})
add_llvm_component_library(LLVM${target_name} ${ARGN})
set( CURRENT_LLVM_TARGET LLVM${target_name} )
endmacro(add_llvm_target)

Expand Down
3 changes: 2 additions & 1 deletion llvm/cmake/modules/LLVM-Config.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,8 @@ function(llvm_map_components_to_libnames out_libs)
elseif( c STREQUAL "engine" )
# already processed
elseif( c STREQUAL "all" )
list(APPEND expanded_components ${LLVM_AVAILABLE_LIBS})
get_property(all_components GLOBAL PROPERTY LLVM_COMPONENT_LIBS)
list(APPEND expanded_components ${all_components})
else()
# Canonize the component name:
string(TOUPPER "${c}" capitalized)
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Analysis/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMAnalysis
add_llvm_component_library(LLVMAnalysis
AliasAnalysis.cpp
AliasAnalysisEvaluator.cpp
AliasAnalysisSummary.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/AsmParser/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# AsmParser
add_llvm_library(LLVMAsmParser
add_llvm_component_library(LLVMAsmParser
LLLexer.cpp
LLParser.cpp
Parser.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/BinaryFormat/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMBinaryFormat
add_llvm_component_library(LLVMBinaryFormat
AMDGPUMetadataVerifier.cpp
Dwarf.cpp
Magic.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Bitcode/Reader/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMBitReader
add_llvm_component_library(LLVMBitReader
BitcodeAnalyzer.cpp
BitReader.cpp
BitcodeReader.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Bitcode/Writer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMBitWriter
add_llvm_component_library(LLVMBitWriter
BitWriter.cpp
BitcodeWriter.cpp
BitcodeWriterPass.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Bitstream/Reader/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMBitstreamReader
add_llvm_component_library(LLVMBitstreamReader
BitstreamReader.cpp

ADDITIONAL_HEADER_DIRS
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/AsmPrinter/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMAsmPrinter
add_llvm_component_library(LLVMAsmPrinter
AccelTable.cpp
AddressPool.cpp
ARMException.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMCodeGen
add_llvm_component_library(LLVMCodeGen
AggressiveAntiDepBreaker.cpp
AllocationOrder.cpp
Analysis.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/GlobalISel/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMGlobalISel
add_llvm_component_library(LLVMGlobalISel
CSEInfo.cpp
GISelKnownBits.cpp
CSEMIRBuilder.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/MIRParser/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMMIRParser
add_llvm_component_library(LLVMMIRParser
MILexer.cpp
MIParser.cpp
MIRParser.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/SelectionDAG/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMSelectionDAG
add_llvm_component_library(LLVMSelectionDAG
DAGCombiner.cpp
FastISel.cpp
FunctionLoweringInfo.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/DebugInfo/CodeView/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMDebugInfoCodeView
add_llvm_component_library(LLVMDebugInfoCodeView
AppendingTypeTableBuilder.cpp
CodeViewError.cpp
CodeViewRecordIO.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/DebugInfo/DWARF/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMDebugInfoDWARF
add_llvm_component_library(LLVMDebugInfoDWARF
DWARFAbbreviationDeclaration.cpp
DWARFAddressRange.cpp
DWARFAcceleratorTable.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/DebugInfo/GSYM/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMDebugInfoGSYM
add_llvm_component_library(LLVMDebugInfoGSYM
Header.cpp
FileWriter.cpp
FunctionInfo.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/DebugInfo/MSF/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMDebugInfoMSF
add_llvm_component_library(LLVMDebugInfoMSF
MappedBlockStream.cpp
MSFBuilder.cpp
MSFCommon.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/DebugInfo/PDB/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ add_pdb_impl_folder(Native
list(APPEND LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB/Native")
list(APPEND LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB")

add_llvm_library(LLVMDebugInfoPDB
add_llvm_component_library(LLVMDebugInfoPDB
GenericError.cpp
IPDBSourceFile.cpp
PDB.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/DebugInfo/Symbolize/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMSymbolize
add_llvm_component_library(LLVMSymbolize
DIPrinter.cpp
SymbolizableObjectFile.cpp
Symbolize.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Demangle/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMDemangle
add_llvm_component_library(LLVMDemangle
Demangle.cpp
ItaniumDemangle.cpp
MicrosoftDemangle.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/ExecutionEngine/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


add_llvm_library(LLVMExecutionEngine
add_llvm_component_library(LLVMExecutionEngine
ExecutionEngine.cpp
ExecutionEngineBindings.cpp
GDBRegistrationListener.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/ExecutionEngine/IntelJITEvents/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ endif()
set(LLVM_INTEL_JIT_LIBS ${LLVM_PTHREAD_LIB} ${LLVM_INTEL_JIT_LIBS})


add_llvm_library(LLVMIntelJITEvents
add_llvm_component_library(LLVMIntelJITEvents
IntelJITEventListener.cpp
jitprofiling.c

Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/ExecutionEngine/Interpreter/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if( FFI_INCLUDE_PATH )
include_directories( ${FFI_INCLUDE_PATH} )
endif()

add_llvm_library(LLVMInterpreter
add_llvm_component_library(LLVMInterpreter
Execution.cpp
ExternalFunctions.cpp
Interpreter.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/ExecutionEngine/JITLink/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMJITLink
add_llvm_component_library(LLVMJITLink
JITLink.cpp
JITLinkGeneric.cpp
JITLinkMemoryManager.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/ExecutionEngine/MCJIT/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMMCJIT
add_llvm_component_library(LLVMMCJIT
MCJIT.cpp

DEPENDS
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/ExecutionEngine/OProfileJIT/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

include_directories( ${LLVM_OPROFILE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/.. )

add_llvm_library(LLVMOProfileJIT
add_llvm_component_library(LLVMOProfileJIT
OProfileJITEventListener.cpp
OProfileWrapper.cpp
)
2 changes: 1 addition & 1 deletion llvm/lib/ExecutionEngine/Orc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMOrcJIT
add_llvm_component_library(LLVMOrcJIT
CompileOnDemandLayer.cpp
CompileUtils.cpp
Core.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/ExecutionEngine/OrcError/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMOrcError
add_llvm_component_library(LLVMOrcError
OrcError.cpp
RPCError.cpp
ADDITIONAL_HEADER_DIRS
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/ExecutionEngine/PerfJITEvents/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMPerfJITEvents
add_llvm_component_library(LLVMPerfJITEvents
PerfJITEventListener.cpp
)

Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/ExecutionEngine/RuntimeDyld/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMRuntimeDyld
add_llvm_component_library(LLVMRuntimeDyld
JITSymbol.cpp
RTDyldMemoryManager.cpp
RuntimeDyld.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/FuzzMutate/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMFuzzMutate
add_llvm_component_library(LLVMFuzzMutate
FuzzerCLI.cpp
IRMutator.cpp
OpDescriptor.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/IR/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ set(LLVM_TARGET_DEFINITIONS AttributesCompatFunc.td)
tablegen(LLVM AttributesCompatFunc.inc -gen-attrs)
add_public_tablegen_target(AttributeCompatFuncTableGen)

add_llvm_library(LLVMCore
add_llvm_component_library(LLVMCore
AbstractCallSite.cpp
AsmWriter.cpp
Attributes.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/IRReader/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMIRReader
add_llvm_component_library(LLVMIRReader
IRReader.cpp

ADDITIONAL_HEADER_DIRS
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/LTO/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMLTO
add_llvm_component_library(LLVMLTO
Caching.cpp
LTO.cpp
LTOBackend.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/LineEditor/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if(HAVE_LIBEDIT)
set(link_libs edit)
endif()

add_llvm_library(LLVMLineEditor
add_llvm_component_library(LLVMLineEditor
LineEditor.cpp

ADDITIONAL_HEADER_DIRS
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Linker/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMLinker
add_llvm_component_library(LLVMLinker
IRMover.cpp
LinkModules.cpp

Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/MC/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMMC
add_llvm_component_library(LLVMMC
ConstantPools.cpp
ELFObjectWriter.cpp
MCAsmBackend.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/MC/MCDisassembler/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMMCDisassembler
add_llvm_component_library(LLVMMCDisassembler
Disassembler.cpp
MCDisassembler.cpp
MCExternalSymbolizer.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/MC/MCParser/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMMCParser
add_llvm_component_library(LLVMMCParser
AsmLexer.cpp
AsmParser.cpp
COFFAsmParser.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/MCA/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMMCA
add_llvm_component_library(LLVMMCA
CodeEmitter.cpp
Context.cpp
HWEventListener.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Object/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMObject
add_llvm_component_library(LLVMObject
Archive.cpp
ArchiveWriter.cpp
Binary.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/ObjectYAML/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMObjectYAML
add_llvm_component_library(LLVMObjectYAML
CodeViewYAMLDebugSections.cpp
CodeViewYAMLSymbols.cpp
CodeViewYAMLTypeHashing.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Option/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMOption
add_llvm_component_library(LLVMOption
Arg.cpp
ArgList.cpp
Option.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Passes/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if (MSVC)
set_source_files_properties(PassBuilder.cpp PROPERTIES COMPILE_FLAGS /bigobj)
endif()

add_llvm_library(LLVMPasses
add_llvm_component_library(LLVMPasses
PassBuilder.cpp
PassPlugin.cpp
StandardInstrumentations.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/ProfileData/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMProfileData
add_llvm_component_library(LLVMProfileData
GCOV.cpp
InstrProf.cpp
InstrProfReader.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/ProfileData/Coverage/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMCoverage
add_llvm_component_library(LLVMCoverage
CoverageMapping.cpp
CoverageMappingWriter.cpp
CoverageMappingReader.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Remarks/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMRemarks
add_llvm_component_library(LLVMRemarks
BitstreamRemarkParser.cpp
BitstreamRemarkSerializer.cpp
Remark.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Support/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ else()
set(Z3_LINK_FILES "")
endif()

add_llvm_library(LLVMSupport
add_llvm_component_library(LLVMSupport
AArch64TargetParser.cpp
ABIBreak.cpp
ARMTargetParser.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/TableGen/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMTableGen
add_llvm_component_library(LLVMTableGen
Error.cpp
JSONBackend.cpp
Main.cpp
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/AArch64/AsmParser/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )

add_llvm_library(LLVMAArch64AsmParser
add_llvm_component_library(LLVMAArch64AsmParser
AArch64AsmParser.cpp
)

2 changes: 1 addition & 1 deletion llvm/lib/Target/AArch64/Disassembler/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
include_directories( ${CMAKE_CURRENT_BINARY_DIR}/.. ${CMAKE_CURRENT_SOURCE_DIR}/.. )

add_llvm_library(LLVMAArch64Disassembler
add_llvm_component_library(LLVMAArch64Disassembler
AArch64Disassembler.cpp
AArch64ExternalSymbolizer.cpp
)
Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/AArch64/MCTargetDesc/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
add_llvm_library(LLVMAArch64Desc
add_llvm_component_library(LLVMAArch64Desc
AArch64AsmBackend.cpp
AArch64ELFObjectWriter.cpp
AArch64ELFStreamer.cpp
Expand Down
Loading

0 comments on commit ab41180

Please sign in to comment.