Skip to content

Commit e2426cd

Browse files
nikictstellar
authored andcommitted
[libclc] Allow default path when looking for llvm-spirv (llvm#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). (cherry picked from commit 26ecddb)
1 parent b5f41cc commit e2426cd

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)