Skip to content

Commit 851c750

Browse files
committed
fix: llmapi 0.1.0 bundles tinyhttps, needs mbedtls directly
1 parent 83c7f50 commit 851c750

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

packages/l/llmapi/xmake.lua

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,20 @@ package("llmapi")
2323
on_load(function (package)
2424
package:add("links", "llmapi")
2525
if package:version():ge("0.2.0") then
26+
-- 0.2.0+ extracted tinyhttps into a separate package
2627
package:add("deps", "mcpplibs-tinyhttps >=0.2.0")
28+
elseif package:version():ge("0.1.0") then
29+
-- 0.1.0 bundles tinyhttps inline, but still needs mbedtls
30+
package:add("deps", "mbedtls >=3.6.1")
2731
end
2832
end)
2933

3034
on_install(function (package)
3135
local configs = {}
32-
import("package.tools.xmake").install(package, configs, {target = "llmapi"})
36+
if package:version():ge("0.2.0") then
37+
import("package.tools.xmake").install(package, configs, {target = "llmapi"})
38+
else
39+
-- 0.1.0 and earlier: install all targets (llmapi bundles tinyhttps)
40+
import("package.tools.xmake").install(package, configs)
41+
end
3342
end)

0 commit comments

Comments
 (0)