Quellcode durchsuchen

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 vor 2 Monaten
Ursprung
Commit
c8af5b6a3d
1 geänderte Dateien mit 1 neuen und 0 gelöschten Zeilen
  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("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_arch("x64") then