summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-01-30 16:52:19 +0800
committerruki <[email protected]>2021-01-30 16:52:19 +0800
commit0bfc6ac0e22d40fb2c3c41dd4357c16ad0934e3b (patch)
tree33e51cf2d07b35ff18ed06cfe784b8be3668ca3d
parent80df14243be88ffd1714ed3522653d6c9b54c923 (diff)
improve zig toolchain
-rw-r--r--xmake/toolchains/zig/xmake.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/xmake/toolchains/zig/xmake.lua b/xmake/toolchains/zig/xmake.lua
index b22d771f4..3be2fdf45 100644
--- a/xmake/toolchains/zig/xmake.lua
+++ b/xmake/toolchains/zig/xmake.lua
@@ -25,9 +25,6 @@ toolchain("zig")
set_homepage("https://ziglang.org/")
set_description("Zig Programming Language Compiler")
- -- mark as standalone toolchain
- set_kind("standalone")
-
-- on check
on_check(function (toolchain)
import("lib.detect.find_tool")
@@ -40,7 +37,7 @@ toolchain("zig")
end
local zig = get_config("zc")
if not zig then
- zig = find_tool("zig", {paths = paths})
+ zig = find_tool("zig", {force = true, paths = paths})
if zig and zig.program then
zig = zig.program
end