Skip to content

Commit 27a08fe

Browse files
authored
Qualcomm AI Engine Direct - Fixed build error for llama runner on Mac (#13838)
As title. It appears that $ORIGIN doesn't exist as an environment variable on Mac.
1 parent 0bfbe44 commit 27a08fe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/models/llama/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,4 +219,6 @@ endif()
219219
target_include_directories(llama_main PUBLIC ${_common_include_directories})
220220
target_link_libraries(llama_main PUBLIC llama_runner ${link_libraries})
221221
target_compile_options(llama_main PUBLIC ${_common_compile_options})
222-
set_target_properties(llama_main PROPERTIES LINK_FLAGS "-Wl,-rpath='$ORIGIN'")
222+
if(NOT APPLE)
223+
set_target_properties(llama_main PROPERTIES LINK_FLAGS "-Wl,-rpath='$ORIGIN'")
224+
endif()

0 commit comments

Comments
 (0)