summaryrefslogtreecommitdiff
path: root/xmake/toolchains/zig/xmake.lua
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-01-27 06:19:50 +0300
committerSaikari <[email protected]>2026-01-27 06:19:50 +0300
commit8dcdca8ffafd766cb19e740a99876230264f63b8 (patch)
treefb023f4eda107e4793f95a173cdb1853cdf95420 /xmake/toolchains/zig/xmake.lua
parent6ef9282d922b511f92a20b67edc99467ac1e763f (diff)
refactor target architecture validation in zig toolchain
Diffstat (limited to 'xmake/toolchains/zig/xmake.lua')
-rw-r--r--xmake/toolchains/zig/xmake.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/xmake/toolchains/zig/xmake.lua b/xmake/toolchains/zig/xmake.lua
index 7ae24eec4..98c4e256a 100644
--- a/xmake/toolchains/zig/xmake.lua
+++ b/xmake/toolchains/zig/xmake.lua
@@ -138,9 +138,7 @@ toolchain("zig")
if target then
local tarch = target:match("^(.-)-") or target
- if arch == "x86_64" and tarch ~= "x86_64" then
- target = nil
- elseif arch == "aarch64" and tarch ~= "aarch64" then
+ if arch ~= tarch then
target = nil
end
end