Skip to content

Commit 50d4321

Browse files
authored
[sycl] Fix build with updated compiler (#11618)
Co-authored-by: Dmitry Razdoburdin <>
1 parent f25f74d commit 50d4321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ if(PLUGIN_SYCL)
364364
set(CMAKE_CXX_LINK_EXECUTABLE
365365
"icpx <FLAGS> <CMAKE_CXX_LINK_FLAGS> -qopenmp <LINK_FLAGS> <OBJECTS> -o <TARGET> <LINK_LIBRARIES>")
366366
set(CMAKE_CXX_CREATE_SHARED_LIBRARY
367-
"icpx <CMAKE_SHARED_LIBRARY_CXX_FLAGS> -qopenmp <LANGUAGE_COMPILE_FLAGS> \
367+
"icpx -shared <CMAKE_SHARED_LIBRARY_CXX_FLAGS> -qopenmp <LANGUAGE_COMPILE_FLAGS> \
368368
<CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS> <SONAME_FLAG>,<TARGET_SONAME> \
369369
-o <TARGET> <OBJECTS> <LINK_LIBRARIES>")
370370
endif()

0 commit comments

Comments
 (0)