Skip to content

Commit a5b85d8

Browse files
authored
[SYCL][LIBCLC] Make sure that the output directory for sycldevice-binding.bc exists. (#2101)
Since it is not put into a "standard" directory, one needs to make sure by hand that it would be created.
1 parent 43af08d commit a5b85d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libclc/cmake/modules/AddLibclc.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ function(add_libclc_sycl_binding OUT_LIST)
213213
if( EXISTS ${SYCLDEVICE_BINDING} )
214214
set( SYCLDEVICE_BINDING_OUT ${CMAKE_CURRENT_BINARY_DIR}/sycldevice-binding-${ARG_TRIPLE}/sycldevice-binding.bc )
215215
add_custom_command( OUTPUT ${SYCLDEVICE_BINDING_OUT}
216+
COMMAND ${CMAKE_COMMAND} -E make_directory
217+
${CMAKE_CURRENT_BINARY_DIR}/sycldevice-binding-${ARG_TRIPLE}
216218
COMMAND ${LLVM_CLANG}
217219
-target ${ARG_TRIPLE}-sycldevice
218220
-fsycl

0 commit comments

Comments
 (0)