diff options
| author | ruki <[email protected]> | 2025-10-22 23:51:37 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-10-22 23:51:37 +0800 |
| commit | 61718bca7649cee105acbbf33afcddfc80015f67 (patch) | |
| tree | 37a36cdaa3e56b800077f691ce094313fd3b1422 /xmake/toolchains/zig/xmake.lua | |
| parent | a2e6edc875bc33b28c7d2d14f787b1e4ea59e26a (diff) | |
improve to find zig from sdk
Diffstat (limited to 'xmake/toolchains/zig/xmake.lua')
| -rw-r--r-- | xmake/toolchains/zig/xmake.lua | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
