瀏覽代碼

Fix a dylib problem that fails to find onnxruntime (#7291)

* Fix a dylib problem that fails to find onnxruntime

* Enforce `shared` option because download links point to precompiled shared library

---------

Co-authored-by: Saikari <[email protected]>
KnightJun 2 月之前
父節點
當前提交
c8af5b6a3d
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packages/o/onnxruntime/xmake.lua

+ 1 - 0
packages/o/onnxruntime/xmake.lua

@@ -5,6 +5,7 @@ package("onnxruntime")
 
 
     add_configs("gpu", {description = "Enable GPU support on windows|x64 and linux|x86_64", default = false, type = "boolean"})
     add_configs("gpu", {description = "Enable GPU support on windows|x64 and linux|x86_64", default = false, type = "boolean"})
     add_configs("cuda_version", {description = "Specify which CUDA version to use for GPU support", default = "11", type = "string"})
     add_configs("cuda_version", {description = "Specify which CUDA version to use for GPU support", default = "11", type = "string"})
+    add_configs("shared", {description = "Download shared binaries.", default = true, type = "boolean", readonly = true})
 
 
     if is_plat("windows") then
     if is_plat("windows") then
         if is_arch("x64") then
         if is_arch("x64") then