Skip to content

Commit 64b2ec8

Browse files
committed
fix: Vulkan shader gen binary path when not cross compiling
1 parent 8d59d91 commit 64b2ec8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ggml/src/ggml-vulkan/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ if (Vulkan_FOUND)
8383

8484
file(GLOB _ggml_vk_shader_deps "${_ggml_vk_input_dir}/*.comp")
8585

86-
if (NOT CMAKE_CROSSCOMPILING)
86+
if (CMAKE_SYSTEM_NAME STREQUAL CMAKE_HOST_SYSTEM_NAME)
8787
set(_ggml_vk_genshaders_cmd "$<TARGET_FILE_DIR:vulkan-shaders-gen>/${_ggml_vk_genshaders_cmd}")
8888
endif ()
8989

0 commit comments

Comments
 (0)