summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/ld.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/ld.lua
parentd8260f9ef9224739a30d50a419ca8e86eb21976d (diff)
use self:is_plat for tools
Diffstat (limited to 'xmake/modules/core/tools/ld.lua')
-rw-r--r--xmake/modules/core/tools/ld.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/ld.lua b/xmake/modules/core/tools/ld.lua
index 2b91c2634..e933a847c 100644
--- a/xmake/modules/core/tools/ld.lua
+++ b/xmake/modules/core/tools/ld.lua
@@ -31,7 +31,7 @@ function init(self)
self:set("shflags", "-shared")
-- add -fPIC for shared
- if not is_plat("windows", "mingw") then
+ if not self:is_plat("windows", "mingw") then
self:add("shflags", "-fPIC")
self:add("shared.cxflags", "-fPIC")
end
@@ -43,7 +43,7 @@ function nf_strip(self, level, target)
debug = "-S"
, all = "-s"
}
- if target:is_plat("macosx", "iphoneos") then
+ if self:is_plat("macosx", "iphoneos") then
maps.all = "-Wl,-x"
maps.debug = "-Wl,-S"
end