Skip to content

Commit de8859d

Browse files
authored
[libclc] Create LIBCLC_OUTPUT_LIBRARY_DIR directory before build (#158171)
This fixes `No such file or directory` error when "Unix Makefiles" generator is used, see intel/llvm#20058. Ninja generator implicitly creates output directory when generating libclc libraries, but "Unix Makefiles" generator does not.
1 parent 1e10b78 commit de8859d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

libclc/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ else()
104104

105105
# Note we do not adhere to LLVM_ENABLE_PER_TARGET_RUNTIME_DIR.
106106
set( LIBCLC_OUTPUT_LIBRARY_DIR ${LIBCLC_OUTPUT_DIR}/lib/libclc )
107+
file( MAKE_DIRECTORY ${LIBCLC_OUTPUT_LIBRARY_DIR} )
107108
endif()
108109

109110
if( EXISTS ${LIBCLC_CUSTOM_LLVM_TOOLS_BINARY_DIR} )

0 commit comments

Comments
 (0)