summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/gcc.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-10-23 23:01:28 +0800
committerruki <[email protected]>2023-10-23 23:01:28 +0800
commitca2b119caae6424449875117966cb36341733862 (patch)
tree2464e584d7b3db602a901df1744d82705ca0147c /xmake/modules/core/tools/gcc.lua
parentecae2ad7455094fc72ae9abfe8e8a226130fe570 (diff)
add linkgroups for package
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
-rw-r--r--xmake/modules/core/tools/gcc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua
index 6589b6f13..7d55c4fdc 100644
--- a/xmake/modules/core/tools/gcc.lua
+++ b/xmake/modules/core/tools/gcc.lua
@@ -313,7 +313,7 @@ function nf_linkgroup(self, linkgroup, target)
table.insert(linkflags, nf_link(self, lib))
end
local flags = {}
- if not self:is_plat("macosx", "windows", "mingw") then
+ if target and not self:is_plat("macosx", "windows", "mingw") then
local group = target:extraconf("linkgroups", linkgroup, "group")
local whole = target:extraconf("linkgroups", linkgroup, "whole")
if group and whole then