Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYCL] Link gcc_s and gcc libraries for GCC 5+ versions #154

Merged
merged 1 commit into from
May 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
[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 <alexey.bader@intel.com>
  • Loading branch information
bader committed May 22, 2019
commit 51b186edd173774fc269e583a570f9cd9c674837
5 changes: 2 additions & 3 deletions sycl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,11 +182,10 @@ add_custom_target( sycl-toolchain

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

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

Expand Down