We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f71ecb commit 768c5ceCopy full SHA for 768c5ce
xmake/rules/zig/xmake.lua
@@ -22,6 +22,10 @@
22
rule("zig.build")
23
set_sourcekinds("zc")
24
on_load(function (target)
25
+ local toolchains = target:get("toolchains") or get_config("toolchain")
26
+ if not toolchains or not table.contains(table.wrap(toolchains), "zig") then
27
+ target:add("toolchains", "zig")
28
+ end
29
local cachedir = target:values("zig.cachedir") or path.join(target:objectdir(), "zig-cache")
30
os.mkdir(cachedir)
31
target:add("zcflags", "--cache-dir " .. cachedir)
0 commit comments