[llvm-branch-commits] [libclc] e2426cd - [libclc] Allow default path when looking for llvm-spirv (#126071)
Tom Stellard via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Feb 7 14:51:12 PST 2025
Author: Nikita Popov
Date: 2025-02-07T14:50:35-08:00
New Revision: e2426cd9e9b47a771f2aaaef8c48f8dbea8b7d49
URL: https://github.com/llvm/llvm-project/commit/e2426cd9e9b47a771f2aaaef8c48f8dbea8b7d49
DIFF: https://github.com/llvm/llvm-project/commit/e2426cd9e9b47a771f2aaaef8c48f8dbea8b7d49.diff
LOG: [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).
(cherry picked from commit 26ecddb05d13c101ccd840a6710eb5f8b82de841)
Added:
Modified:
libclc/CMakeLists.txt
Removed:
################################################################################
diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt
index 2c2c7f16e29442f..43e213b385f5dd6 100644
--- a/libclc/CMakeLists.txt
+++ b/libclc/CMakeLists.txt
@@ -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()
More information about the llvm-branch-commits
mailing list