Skip to content

Commit 51b186e

Browse files
committed
[SYCL] Link gcc_s and gcc libraries for GCC 5+ versions
The workaround is required for the GCC 5+ version. Signed-off-by: Alexey Bader <[email protected]>
1 parent c94e347 commit 51b186e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sycl/CMakeLists.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,10 @@ add_custom_target( sycl-toolchain
182182

183183
set_target_properties("${SYCLLibrary}" PROPERTIES LINKER_LANGUAGE CXX)
184184

185-
# Workaround for bug in GCC version 5.
185+
# Workaround for bug in GCC version 5 and higher.
186186
# More information https://bugs.launchpad.net/ubuntu/+source/gcc-5/+bug/1568899
187187
if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND
188-
CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 5.0 AND
189-
CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.0)
188+
CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 5.0)
190189
target_link_libraries("${SYCLLibrary}" gcc_s gcc)
191190
endif()
192191

0 commit comments

Comments
 (0)