Skip to content

Commit

Permalink
[libclc] Allow default path when looking for llvm-spirv (#126071)
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
nikic authored and tstellar committed Feb 7, 2025
1 parent b5f41cc commit e2426cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libclc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ endforeach()
if( TARGET llvm-spirv )
get_host_tool_path( llvm-spirv LLVM_SPIRV llvm-spirv_exe llvm-spirv_target )
else()
find_program( LLVM_SPIRV llvm-spirv PATHS ${LLVM_TOOLS_BINARY_DIR} NO_DEFAULT_PATH )
find_program( LLVM_SPIRV llvm-spirv HINTS ${LLVM_TOOLS_BINARY_DIR} )
set( llvm-spirv_exe "${LLVM_SPIRV}" )
set( llvm-spirv_target )
endif()
Expand Down

0 comments on commit e2426cd

Please sign in to comment.