Skip to content
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
6 changes: 4 additions & 2 deletions libdevice/cmake/modules/SYCLLibdevice.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
# freshly built clang. The system one might be very old.
get_filename_component(gcc_bin_dir ${CMAKE_CXX_COMPILER} DIRECTORY)
get_filename_component(gcc_install_dir ${gcc_bin_dir} DIRECTORY)
list(APPEND compile_opts
"--gcc-toolchain=${gcc_install_dir}")
# /bin/g++ doesn't need any fixup.
if (NOT gcc_install_dir STREQUAL "/")
list(APPEND compile_opts "--gcc-toolchain=${gcc_install_dir}")
endif()
endif()

if ("NVPTX" IN_LIST LLVM_TARGETS_TO_BUILD)
Expand Down