Link tests to required libraries (#124)
A lot of the unit tests make use of the C++ thread library but the
cmakefile doesn't explicitly link them to the pthread library but
instead rely on hipcc to implicitly link in the pthread library.
Some tests that rely on librt have a similar issue. The tests
break when we are cleaning up hipcc by removing the implcit linking
to those libraries.
[ROCm/hip-tests commit: 500dc6f69a]
Tá an tiomantas seo le fáil i:
1 tuismitheoir
f57c5a26ef
tiomantas
cfdd30183d
1 comhad athraithe
+2
@@ -374,6 +374,8 @@ function(hip_add_exe_to_target)
|
||||
if(UNIX)
|
||||
set(_LINKER_LIBS ${_LINKER_LIBS} stdc++fs)
|
||||
set(_LINKER_LIBS ${_LINKER_LIBS} -ldl)
|
||||
set(_LINKER_LIBS ${_LINKER_LIBS} pthread)
|
||||
set(_LINKER_LIBS ${_LINKER_LIBS} rt)
|
||||
else()
|
||||
# res files are built resource files using rc files.
|
||||
# use llvm-rc exe to build the res files
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir