SWDEV-355608 - deprecate/cleanup hipcc link flags (#3128)

- deprecate -use-staticlib, -use-sharedlib which no longer provide any
functional values
- use --hip-link instead of specifying the HIP runtime by name when
linking
- fix linker option bug in HIT test's cmake
- update build options for unit tests requiring pthread or rt

Change-Id: Ib49978773c80fb40c71dc52b050ce921943ee3e4
This commit is contained in:
Siu Chi Chan
2023-01-24 06:42:52 +00:00
committato da GitHub
parent d8f39ab8d2
commit a388eb1e6f
42 ha cambiato i file con 93 aggiunte e 72 eliminazioni
@@ -6,7 +6,12 @@ set(TEST_SRC
hipPeekAtLastError.cc
)
if (UNIX)
set(__LINKER_LIBS__ pthread)
endif()
hip_add_exe_to_target(NAME ErrorHandlingTest
TEST_SRC ${TEST_SRC}
TEST_TARGET_NAME build_tests
COMPILE_OPTIONS -std=c++14)
LINKER_LIBS ${__LINKER_LIBS__}
COMPILE_OPTIONS -std=c++14)