projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add a C++11 ThreadPool implementation in LLVM
[oota-llvm.git]
/
unittests
/
Support
/
CMakeLists.txt
diff --git
a/unittests/Support/CMakeLists.txt
b/unittests/Support/CMakeLists.txt
index b66c5db2c3e5b49ab6484caa02b82cb00502d18f..9bd685759ed0b829439c2ec0d5dc9d0ffb836b66 100644
(file)
--- a/
unittests/Support/CMakeLists.txt
+++ b/
unittests/Support/CMakeLists.txt
@@
-1,6
+1,6
@@
set(LLVM_LINK_COMPONENTS
set(LLVM_LINK_COMPONENTS
+ ${LLVM_TARGETS_TO_BUILD}
Support
Support
- Core
)
add_llvm_unittest(SupportTests
)
add_llvm_unittest(SupportTests
@@
-8,30
+8,51
@@
add_llvm_unittest(SupportTests
AllocatorTest.cpp
ArrayRecyclerTest.cpp
BlockFrequencyTest.cpp
AllocatorTest.cpp
ArrayRecyclerTest.cpp
BlockFrequencyTest.cpp
+ BranchProbabilityTest.cpp
Casting.cpp
CommandLineTest.cpp
CompressionTest.cpp
Casting.cpp
CommandLineTest.cpp
CompressionTest.cpp
- Con
stantRange
Test.cpp
+ Con
vertUTF
Test.cpp
DataExtractorTest.cpp
DataExtractorTest.cpp
+ DwarfTest.cpp
+ EndianStreamTest.cpp
EndianTest.cpp
ErrorOrTest.cpp
FileOutputBufferTest.cpp
EndianTest.cpp
ErrorOrTest.cpp
FileOutputBufferTest.cpp
- IntegersSubsetTest.cpp
- LeakDetectorTest.cpp
+ IteratorTest.cpp
+ LEB128Test.cpp
+ LineIteratorTest.cpp
+ LockFileManagerTest.cpp
+ MD5Test.cpp
ManagedStatic.cpp
MathExtrasTest.cpp
ManagedStatic.cpp
MathExtrasTest.cpp
- MD5Test.cpp
MemoryBufferTest.cpp
MemoryTest.cpp
Path.cpp
ProcessTest.cpp
ProgramTest.cpp
RegexTest.cpp
MemoryBufferTest.cpp
MemoryTest.cpp
Path.cpp
ProcessTest.cpp
ProgramTest.cpp
RegexTest.cpp
+ ReplaceFileTest.cpp
+ ScaledNumberTest.cpp
+ SourceMgrTest.cpp
+ SpecialCaseListTest.cpp
+ StreamingMemoryObject.cpp
+ StringPool.cpp
SwapByteOrderTest.cpp
SwapByteOrderTest.cpp
- TimeValue.cpp
- ValueHandleTest.cpp
+ TargetRegistry.cpp
+ ThreadLocalTest.cpp
+ ThreadPool.cpp
+ TimeValueTest.cpp
+ TrailingObjectsTest.cpp
+ UnicodeTest.cpp
YAMLIOTest.cpp
YAMLParserTest.cpp
formatted_raw_ostream_test.cpp
raw_ostream_test.cpp
YAMLIOTest.cpp
YAMLParserTest.cpp
formatted_raw_ostream_test.cpp
raw_ostream_test.cpp
+ raw_pwrite_stream_test.cpp
)
)
+
+# ManagedStatic.cpp uses <pthread>.
+if(LLVM_ENABLE_THREADS AND HAVE_LIBPTHREAD)
+ target_link_libraries(SupportTests pthread)
+endif()