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

Commit 10ddf11

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 b4df069 commit 10ddf11

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
@@ -343,6 +343,7 @@ add_executable(parser_tests
343343
unittests/Parser/ParserTests.cpp
344344
)
345345

346+
find_package(Threads)
346347
set(LLVM_LDFLAGS "${LLVM_LDFLAGS} ${ALIVE_LDFLAGS}")
347348
foreach(target souper internal-solver-test lexer-test parser-test souper-check count-insts
348349
souperExtractor souperInfer souperInst souperKVStore souperParser
@@ -377,9 +378,9 @@ target_link_libraries(parser-test souperParser)
377378
target_link_libraries(souper-check souperTool souperExtractor souperKVStore souperSMTLIB2 souperParser ${HIREDIS_LIBRARY} ${ALIVE_LIBRARY} ${Z3_LIBRARY})
378379
target_link_libraries(clang-souper souperClangTool souperExtractor souperKVStore souperParser souperSMTLIB2 souperTool kleeExpr ${CLANG_LIBS} ${LLVM_LIBS} ${LLVM_LDFLAGS} ${HIREDIS_LIBRARY} ${ALIVE_LIBRARY} ${Z3_LIBRARY})
379380
target_link_libraries(count-insts souperParser)
380-
target_link_libraries(extractor_tests souperExtractor ${GTEST_LIBS} ${ALIVE_LIBRARY})
381-
target_link_libraries(inst_tests souperInst ${GTEST_LIBS} ${ALIVE_LIBRARY})
382-
target_link_libraries(parser_tests souperParser ${GTEST_LIBS} ${ALIVE_LIBRARY})
381+
target_link_libraries(extractor_tests souperExtractor ${GTEST_LIBS} ${ALIVE_LIBRARY} ${CMAKE_THREAD_LIBS_INIT})
382+
target_link_libraries(inst_tests souperInst ${GTEST_LIBS} ${ALIVE_LIBRARY} ${CMAKE_THREAD_LIBS_INIT})
383+
target_link_libraries(parser_tests souperParser ${GTEST_LIBS} ${ALIVE_LIBRARY} ${CMAKE_THREAD_LIBS_INIT})
383384

384385
SET(BUILD_CLANG_TOOL 1 CACHE BOOL "Build the Souper Clang tool")
385386
if (NOT BUILD_CLANG_TOOL)

0 commit comments

Comments
 (0)