summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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