File tree Expand file tree Collapse file tree 3 files changed +40
-0
lines changed
test/dpct/cmake_migration/case_041 Expand file tree Collapse file tree 3 files changed +40
-0
lines changed Original file line number Diff line number Diff line change @@ -9,3 +9,16 @@ target_link_options(quda PUBLIC )
99target_link_options( quda PUBLIC )
1010
1111target_link_options(quda PUBLIC )
12+
13+ target_link_options(nvcv_util_compat PUBLIC
14+
15+ -static-libgcc
16+ -Wl,--wrap=__libc_start_main
17+ -Wl,-u__cxa_thread_atexit_impl
18+ ${linkcompat}
19+ -Wl,--push-state,--no-as-needed
20+ ${CMAKE_CURRENT_SOURCE_DIR}/stubs/libdl-2.17_stub.so
21+ ${CMAKE_CURRENT_SOURCE_DIR}/stubs/librt-2.17_stub.so
22+ ${CMAKE_CURRENT_SOURCE_DIR}/stubs/libpthread-2.17_stub.so
23+ -Wl,--pop-state
24+ )
Original file line number Diff line number Diff line change @@ -9,3 +9,17 @@ target_link_options(quda PUBLIC $<$<CUDA_COMPILER_ID:Clang>: --cuda-path=${CUDAT
99target_link_options ( quda PUBLIC $<$<CUDA_COMPILER_ID:Clang>: --cuda-path =${CUDAToolkit_TARGET_DIR} >)
1010
1111target_link_options (quda PUBLIC $<$<CUDA_COMPILER_ID:Clang>: --cuda-path =${CUDAToolkit_TARGET_DIR} > )
12+
13+ target_link_options (nvcv_util_compat
14+ PUBLIC
15+ -static -libstdc++
16+ -static -libgcc
17+ -Wl,--wrap=__libc_start_main
18+ -Wl,-u__cxa_thread_atexit_impl
19+ ${linkcompat}
20+ -Wl,--push-state,--no -as-needed
21+ ${CMAKE_CURRENT_SOURCE_DIR} /stubs/libdl-2.17_stub.so
22+ ${CMAKE_CURRENT_SOURCE_DIR} /stubs/librt-2.17_stub.so
23+ ${CMAKE_CURRENT_SOURCE_DIR} /stubs/libpthread-2.17_stub.so
24+ -Wl,--pop-state
25+ )
Original file line number Diff line number Diff line change 24252425 Out : " "
24262426 RuleId : " remove_target_link_options_cuda_arg"
24272427
2428+ # '-static-libstdc++' is not supported together with '-fsycl' when using icpx compiler.
2429+ - Rule : rule_static_libstdc++_target_link_options
2430+ Kind : CMakeRule
2431+ Priority : Fallback
2432+ CmakeSyntax : static_libstdc++_target_link_options
2433+ In : target_link_options${empty}(${target} ${libs})
2434+ Out : target_link_options(${target} ${libs})
2435+ Subrules :
2436+ libs :
2437+ In : -static-libstdc++
2438+ Out : " "
2439+ MatchMode : Full
2440+
24282441- Rule : rule_target_link_directories
24292442 Kind : CMakeRule
24302443 Priority : Fallback
You can’t perform that action at this time.
0 commit comments