Skip to content

Commit

Permalink
fix: Vulkan shader gen binary path when not cross compiling
Browse files Browse the repository at this point in the history
  • Loading branch information
giladgd committed Jan 8, 2025
1 parent 8d59d91 commit 64b2ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ggml/src/ggml-vulkan/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ if (Vulkan_FOUND)

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

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

Expand Down

0 comments on commit 64b2ec8

Please sign in to comment.