Skip to content

Commit a5e2e4f

Browse files
committed
[ASan][OpenMP] Fix Build failure of openmp_extras
Remove host-asan library(libclang_rt.asan-x86_64.so) linking for hostexec library. Change-Id: I02fc4a6ad74b015d88c093b3383b95b3b79b048d
1 parent 962606a commit a5e2e4f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

openmp/libomptarget/hostexec/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ if (hsa-runtime64_FOUND)
3838
target_link_libraries(amdgcn_hostexec_services hsa-runtime64::hsa-runtime64)
3939
if(SANITIZER_AMDGPU)
4040
add_definitions(-DSANITIZER_AMDGPU=1)
41-
set(ASAN_LIB ${LLVM_LIBRARY_DIR}/clang/${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH}/lib/linux/libclang_rt.asan-x86_64.so)
42-
target_link_libraries(amdgcn_hostexec_services ${ASAN_LIB})
4341
endif()
4442
add_compile_options($<$<OR:$<COMPILE_LANGUAGE:C>,$<COMPILE_LANGUAGE:CXX>>:-UNDEBUG>)
4543
set_property(TARGET amdgcn_hostexec_services PROPERTY POSITION_INDEPENDENT_CODE ON)

0 commit comments

Comments
 (0)