From 61718bca7649cee105acbbf33afcddfc80015f67 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 22 Oct 2025 23:51:37 +0800 Subject: improve to find zig from sdk --- xmake/toolchains/zig/xmake.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xmake/toolchains/zig/xmake.lua b/xmake/toolchains/zig/xmake.lua index 87126b787..2b3abf57b 100644 --- a/xmake/toolchains/zig/xmake.lua +++ b/xmake/toolchains/zig/xmake.lua @@ -54,6 +54,11 @@ toolchain("zig") table.join2(paths, envs.PATH) end end + local sdkdir = toolchain:sdkdir() + if sdkdir then + table.insert(paths, sdkdir) + end + local zig = get_config("zc") local zig_version if not zig then -- cgit v1.3.1