mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-04 18:06:49 +00:00
a61fc423f3
LLVM defines `PTHREAD_LIB` which is used by AddLLVM.cmake and various projects to correctly link the threading library when needed. Unfortunately `PTHREAD_LIB` is defined by LLVM's `config-ix.cmake` file which isn't installed and therefore can't be used when configuring out-of-tree builds. This causes such builds to fail since `pthread` isn't being correctly linked. This patch attempts to fix that problem by renaming and exporting `LLVM_PTHREAD_LIB` as part of`LLVMConfig.cmake`. I renamed `PTHREAD_LIB` because It seemed likely to cause collisions with downstream users of `LLVMConfig.cmake`. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294690 91177308-0d34-0410-b5e6-96231b3b80d8
68 lines
1.3 KiB
CMake
68 lines
1.3 KiB
CMake
set(LLVM_LINK_COMPONENTS
|
|
Support
|
|
)
|
|
|
|
add_llvm_unittest(SupportTests
|
|
AlignOfTest.cpp
|
|
AllocatorTest.cpp
|
|
ARMAttributeParser.cpp
|
|
ArrayRecyclerTest.cpp
|
|
BlockFrequencyTest.cpp
|
|
BranchProbabilityTest.cpp
|
|
Casting.cpp
|
|
Chrono.cpp
|
|
CommandLineTest.cpp
|
|
CompressionTest.cpp
|
|
ConvertUTFTest.cpp
|
|
DataExtractorTest.cpp
|
|
DebugTest.cpp
|
|
DwarfTest.cpp
|
|
EndianStreamTest.cpp
|
|
EndianTest.cpp
|
|
ErrorOrTest.cpp
|
|
ErrorTest.cpp
|
|
FileOutputBufferTest.cpp
|
|
FormatVariadicTest.cpp
|
|
GlobPatternTest.cpp
|
|
Host.cpp
|
|
LEB128Test.cpp
|
|
LineIteratorTest.cpp
|
|
LockFileManagerTest.cpp
|
|
MD5Test.cpp
|
|
ManagedStatic.cpp
|
|
MathExtrasTest.cpp
|
|
MemoryBufferTest.cpp
|
|
MemoryTest.cpp
|
|
NativeFormatTests.cpp
|
|
Path.cpp
|
|
ProcessTest.cpp
|
|
ProgramTest.cpp
|
|
RegexTest.cpp
|
|
ReplaceFileTest.cpp
|
|
ScaledNumberTest.cpp
|
|
SourceMgrTest.cpp
|
|
SpecialCaseListTest.cpp
|
|
StringPool.cpp
|
|
SwapByteOrderTest.cpp
|
|
TarWriterTest.cpp
|
|
TargetParserTest.cpp
|
|
ThreadLocalTest.cpp
|
|
ThreadPool.cpp
|
|
Threading.cpp
|
|
TimerTest.cpp
|
|
TypeNameTest.cpp
|
|
TrailingObjectsTest.cpp
|
|
TrigramIndexTest.cpp
|
|
UnicodeTest.cpp
|
|
YAMLIOTest.cpp
|
|
YAMLParserTest.cpp
|
|
formatted_raw_ostream_test.cpp
|
|
raw_ostream_test.cpp
|
|
raw_pwrite_stream_test.cpp
|
|
raw_sha1_ostream_test.cpp
|
|
xxhashTest.cpp
|
|
)
|
|
|
|
# ManagedStatic.cpp uses <pthread>.
|
|
target_link_libraries(SupportTests ${LLVM_PTHREAD_LIB})
|