summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/zig.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-10-08 00:32:24 +0800
committerruki <[email protected]>2022-10-08 00:32:24 +0800
commit664ef028094a250e06521b4a3bdb2a3a5fb567e6 (patch)
tree867a3ba5d901b01575574afa2649adf556352892 /xmake/modules/core/tools/zig.lua
parentd8260f9ef9224739a30d50a419ca8e86eb21976d (diff)
use self:is_plat for tools
Diffstat (limited to 'xmake/modules/core/tools/zig.lua')
-rw-r--r--xmake/modules/core/tools/zig.lua2
1 files changed, 1 insertions, 1 deletions
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)