Skip to content

Commit bc6aa73

Browse files
authored
Merge pull request #2478 from yingcong-wu/yc/1218-libcxx-mess
[DeviceSanitizer] When link with libc++, link the gcc_s first.
2 parents c23cf16 + 8368b99 commit bc6aa73

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/loader/CMakeLists.txt

+2-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ if(UR_ENABLE_SANITIZER)
208208
if(NOT EXISTS ${LIBCXX_PATH} OR NOT EXISTS ${LIBCXX_ABI_PATH})
209209
message(FATAL_ERROR "libc++ is required but can't find the libraries")
210210
endif()
211-
target_link_libraries(ur_loader PRIVATE ${LIBCXX_PATH} ${LIBCXX_ABI_PATH})
211+
# Link with gcc_s fisrt to avoid some symbols resolve to libc++/libc++abi/libunwind's one
212+
target_link_libraries(ur_loader PRIVATE gcc_s ${LIBCXX_PATH} ${LIBCXX_ABI_PATH})
212213
endif()
213214
endif()
214215

0 commit comments

Comments
 (0)