Skip to content

Commit 26ecddb

Browse files
authored
[libclc] Allow default path when looking for llvm-spirv (#126071)
This is an external tool, so I don't think there is an expectation that it has to be in the LLVM tools bindir. It may also be in the default system bindir (which is not necessarily the same).
1 parent 83783e8 commit 26ecddb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libclc/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ endforeach()
114114
if( TARGET llvm-spirv )
115115
get_host_tool_path( llvm-spirv LLVM_SPIRV llvm-spirv_exe llvm-spirv_target )
116116
else()
117-
find_program( LLVM_SPIRV llvm-spirv PATHS ${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH )
117+
find_program( LLVM_SPIRV llvm-spirv HINTS ${LLVM_TOOLS_BINARY_DIR} )
118118
set( llvm-spirv_exe "${LLVM_SPIRV}" )
119119
set( llvm-spirv_target )
120120
endif()

0 commit comments

Comments
 (0)