We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a04090 commit 2d5adadCopy full SHA for 2d5adad
libdevice/cmake/modules/SYCLLibdevice.cmake
@@ -37,8 +37,10 @@ if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
37
# freshly built clang. The system one might be very old.
38
get_filename_component(gcc_bin_dir ${CMAKE_CXX_COMPILER} DIRECTORY)
39
get_filename_component(gcc_install_dir ${gcc_bin_dir} DIRECTORY)
40
- list(APPEND compile_opts
41
- "--gcc-toolchain=${gcc_install_dir}")
+ # /bin/g++ doesn't need any fixup.
+ if (NOT gcc_install_dir STREQUAL "/")
42
+ list(APPEND compile_opts "--gcc-toolchain=${gcc_install_dir}")
43
+ endif()
44
endif()
45
46
if ("NVPTX" IN_LIST LLVM_TARGETS_TO_BUILD)
0 commit comments