mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 11:13:28 +01:00
7d3d7f8d53
llvm-link should not rely on the '.a' file extension when deciding if input file should be loaded as archive. Archives may have other extensions (f.e. .lib) or no extensions at all. This patch changes llvm-link to use llvm::file_magic to check if input file is an archive. Reviewed By: RaviNarayanaswamy Differential Revision: https://reviews.llvm.org/D92376
20 lines
210 B
CMake
20 lines
210 B
CMake
set(LLVM_LINK_COMPONENTS
|
|
BinaryFormat
|
|
BitReader
|
|
BitWriter
|
|
Core
|
|
IRReader
|
|
Linker
|
|
Object
|
|
Support
|
|
TransformUtils
|
|
IPO
|
|
)
|
|
|
|
add_llvm_tool(llvm-link
|
|
llvm-link.cpp
|
|
|
|
DEPENDS
|
|
intrinsics_gen
|
|
)
|