summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/link.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-10-27 03:50:01 -0500
committerGitHub <[email protected]>2023-10-27 03:50:01 -0500
commit6af4b8528bfae7536fc77a5e7fb4341b3f11bc9a (patch)
tree45bb260efc422e8692fc664ed80d9ddc9b56cb3c /xmake/modules/core/tools/link.lua
parenteeda646a4e32b3d672a8097fe995cbdcf101c7aa (diff)
parent1cb74a5009d8fbcb792aa6cc787943453cc5234a (diff)
Merge pull request #4314 from xmake-io/package
Support linkgroups and linkorders for package
Diffstat (limited to 'xmake/modules/core/tools/link.lua')
-rw-r--r--xmake/modules/core/tools/link.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/link.lua b/xmake/modules/core/tools/link.lua
index ee68cf01f..9c53c2e28 100644
--- a/xmake/modules/core/tools/link.lua
+++ b/xmake/modules/core/tools/link.lua
@@ -58,9 +58,10 @@ function get(self, name)
end
-- make the strip flag
-function nf_strip(self, level, target)
+function nf_strip(self, level, opt)
-- link.exe/arm64 does not support /opt:ref, /opt:icf
+ local target = opt.target
if target and target:is_arch("arm64") then
return
end
@@ -80,10 +81,11 @@ function nf_strip(self, level, target)
end
-- make the symbol flag
-function nf_symbol(self, level, target)
+function nf_symbol(self, level, opt)
-- debug? generate *.pdb file
local flags = nil
+ local target = opt.target
if target then
if target:type() == "target" then
if level == "debug" and (target:is_binary() or target:is_shared()) then