summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/rustc.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/rustc.lua
parentd8260f9ef9224739a30d50a419ca8e86eb21976d (diff)
use self:is_plat for tools
Diffstat (limited to 'xmake/modules/core/tools/rustc.lua')
-rw-r--r--xmake/modules/core/tools/rustc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/rustc.lua b/xmake/modules/core/tools/rustc.lua
index c16c6261c..c2bf8db5e 100644
--- a/xmake/modules/core/tools/rustc.lua
+++ b/xmake/modules/core/tools/rustc.lua
@@ -104,7 +104,7 @@ end
function buildargv(self, sourcefiles, targetkind, targetfile, flags)
-- add rpath for dylib (macho), e.g. -install_name @rpath/file.dylib
local flags_extra = {}
- if targetkind == "shared" and is_plat("macosx", "iphoneos", "watchos") then
+ if targetkind == "shared" and self:is_plat("macosx", "iphoneos", "watchos") then
table.insert(flags_extra, "-C")
table.insert(flags_extra, "link-arg=-Xlinker")
table.insert(flags_extra, "-C")