From 664ef028094a250e06521b4a3bdb2a3a5fb567e6 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 8 Oct 2022 00:32:24 +0800 Subject: use self:is_plat for tools --- xmake/modules/core/tools/zig.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/modules/core/tools/zig.lua') diff --git a/xmake/modules/core/tools/zig.lua b/xmake/modules/core/tools/zig.lua index 88cfd0936..c722c700b 100644 --- a/xmake/modules/core/tools/zig.lua +++ b/xmake/modules/core/tools/zig.lua @@ -89,7 +89,7 @@ end -- make the rpathdir flag function nf_rpathdir(self, dir) dir = path.translate(dir) - if is_plat("macosx") then + if self:is_plat("macosx") then return {"-rpath", (dir:gsub("%$ORIGIN", "@loader_path"))} else return {"-rpath", (dir:gsub("@[%w_]+", function (name) -- cgit v1.3.1