Skip to content

Commit e1476d7

Browse files
authored
Fix missing c2h symbol when compiling with clang-cuda (#7454)
1 parent 4a1d30c commit e1476d7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

c2h/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,10 @@ else()
4848
target_compile_definitions(cccl.c2h PRIVATE C2H_HAS_CURAND=0)
4949
endif()
5050

51+
set_target_properties(
52+
cccl.c2h
53+
PROPERTIES CXX_VISIBILITY_PRESET "default" CUDA_VISIBILITY_PRESET "default"
54+
)
55+
5156
add_library(cccl.c2h.main OBJECT catch2_runner.cu catch2_runner_helper.cu)
5257
target_link_libraries(cccl.c2h.main PUBLIC cccl.c2h)

0 commit comments

Comments
 (0)