summaryrefslogtreecommitdiff
path: root/xmake/core/tool/linker.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2019-03-14 23:57:38 +0800
committerruki <[email protected]>2019-03-14 17:45:49 +0800
commit9036abe2d5d282bd19c9f6bdd2acee9ac03051fc (patch)
tree9de2c370b841128b754bd2590e4d0a82173bbe7f /xmake/core/tool/linker.lua
parent1885d14af400ea5658dc89431fc1353184e40643 (diff)
fix uninstall and remove unlink for package
Diffstat (limited to 'xmake/core/tool/linker.lua')
-rw-r--r--xmake/core/tool/linker.lua7
1 files changed, 4 insertions, 3 deletions
diff --git a/xmake/core/tool/linker.lua b/xmake/core/tool/linker.lua
index f7482888c..6f9d9e6eb 100644
--- a/xmake/core/tool/linker.lua
+++ b/xmake/core/tool/linker.lua
@@ -247,7 +247,7 @@ end
-- get the link flags
--
-- @param opt the argument options (contain all the linker attributes of target),
--- .e.g {target = ..., targetkind = "static", config = {ldflags = "", links = "", linkdirs = "", ...}}
+-- .e.g {target = ..., targetkind = "static", configs = {ldflags = "", links = "", linkdirs = "", ...}}
--
function linker:linkflags(opt)
@@ -271,8 +271,9 @@ function linker:linkflags(opt)
self:_add_flags_from_target(flags, target)
-- add flags for the argument
- if opt.config then
- self:_add_flags_from_argument(flags, target, opt.config)
+ local configs = opt.configs or opt.config
+ if configs then
+ self:_add_flags_from_argument(flags, target, configs)
end
-- add flags from the platform