File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ set(compile_opts
55
55
set (SYCL_LIBDEVICE_GCC_TOOLCHAIN "" CACHE PATH "Path to GCC installation" )
56
56
57
57
if (NOT SYCL_LIBDEVICE_GCC_TOOLCHAIN STREQUAL "" )
58
- list (APPEND compile_opts "--gcc-toolchain =${SYCL_LIBDEVICE_GCC_TOOLCHAIN} " )
58
+ list (APPEND compile_opts "--gcc-install-dir =${SYCL_LIBDEVICE_GCC_TOOLCHAIN} " )
59
59
endif ()
60
60
61
61
if (WIN32 )
@@ -503,6 +503,10 @@ set(imf_host_cxx_flags -c
503
503
--target=${LLVM_HOST_TRIPLE}
504
504
-D__LIBDEVICE_HOST_IMPL__
505
505
)
506
+ if (NOT SYCL_LIBDEVICE_GCC_TOOLCHAIN STREQUAL "" )
507
+ list (APPEND imf_host_cxx_flags "--gcc-install-dir=${SYCL_LIBDEVICE_GCC_TOOLCHAIN} " )
508
+ endif ()
509
+
506
510
507
511
macro (mangle_name str output )
508
512
string (STRIP "${str} " strippedStr )
You can’t perform that action at this time.
0 commit comments