Skip to content
This repository was archived by the owner on Oct 30, 2025. It is now read-only.

Commit 716d0b6

Browse files
committed
link to pthreads as well
No idea why and how it was working till today. It got uncovered when I was playing with the CMakeFile for redis versioning thing.
1 parent 9b4d182 commit 716d0b6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,7 @@ add_executable(parser_tests
350350
unittests/Parser/ParserTests.cpp
351351
)
352352

353+
find_package(Threads)
353354
set(LLVM_LDFLAGS "${LLVM_LDFLAGS} ${ALIVE_LDFLAGS}")
354355
foreach(target souper internal-solver-test lexer-test parser-test souper-check count-insts
355356
souperExtractor souperInfer souperInst souperKVStore souperParser
@@ -388,9 +389,9 @@ target_link_libraries(parser-test souperParser)
388389
target_link_libraries(souper-check souperTool souperExtractor souperKVStore souperSMTLIB2 souperParser ${HIREDIS_LIBRARY} ${ALIVE_LIBRARY} z3)
389390
target_link_libraries(clang-souper souperClangTool souperExtractor souperKVStore souperParser souperSMTLIB2 souperTool kleeExpr ${CLANG_LIBS} ${LLVM_LIBS} ${LLVM_LDFLAGS} ${HIREDIS_LIBRARY} ${ALIVE_LIBRARY} z3)
390391
target_link_libraries(count-insts souperParser)
391-
target_link_libraries(extractor_tests souperExtractor ${GTEST_LIBS} ${ALIVE_LIBRARY})
392-
target_link_libraries(inst_tests souperInfer souperInst ${GTEST_LIBS} ${ALIVE_LIBRARY})
393-
target_link_libraries(parser_tests souperParser ${GTEST_LIBS} ${ALIVE_LIBRARY})
392+
target_link_libraries(extractor_tests souperExtractor ${GTEST_LIBS} ${ALIVE_LIBRARY} ${CMAKE_THREAD_LIBS_INIT})
393+
target_link_libraries(inst_tests souperInfer souperInst ${GTEST_LIBS} ${ALIVE_LIBRARY} ${CMAKE_THREAD_LIBS_INIT})
394+
target_link_libraries(parser_tests souperParser ${GTEST_LIBS} ${ALIVE_LIBRARY} ${CMAKE_THREAD_LIBS_INIT})
394395

395396
SET(BUILD_CLANG_TOOL 1 CACHE BOOL "Build the Souper Clang tool")
396397
if (NOT BUILD_CLANG_TOOL)

0 commit comments

Comments
 (0)