Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[offline_compiler/tests] Add -lexecinfo to resolve backtrace and backtrace_symbols #330

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion opencl/test/unit_test/offline_compiler/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ if(WIN32)
endif()

if(UNIX)
target_link_libraries(ocloc_tests dl pthread)
target_link_libraries(ocloc_tests dl pthread execinfo)
endif()

get_property(CLOC_LIB_FOLDER TARGET ocloc_lib PROPERTY FOLDER)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ if(MSVC)
target_link_libraries(ocloc_segfault_test dbghelp)
endif()
if(UNIX)
target_link_libraries(ocloc_segfault_test dl pthread)
target_link_libraries(ocloc_segfault_test dl pthread execinfo)
endif()

set(CLOC_SEGFAULT_TEST_INCLUDES
Expand Down
2 changes: 1 addition & 1 deletion shared/offline_compiler/source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ if(MSVC)
endif()

if(UNIX)
target_link_libraries(${OCLOC_NAME}_lib dl pthread)
target_link_libraries(${OCLOC_NAME}_lib dl pthread execinfo)
endif()

set(CLOC_LIB_SRCS_LIB ${CLOC_LIB_SRCS_LIB} PARENT_SCOPE)
Expand Down