diff options
| author | ruki <[email protected]> | 2023-10-07 21:27:52 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-10-07 21:27:52 +0800 |
| commit | c870af37496a0a39d7b21925895500978cabe2f2 (patch) | |
| tree | ca36ddc806178dbefe18a0db2508057130c50abb | |
| parent | 720f0eb9c5ba51a5a76ef31e7285b6ea1b08b400 (diff) | |
fix gcc is_plat
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index f87eb24ea..eb2e78641 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -311,7 +311,7 @@ function nf_linkgroup(self, linkgroup, target) table.insert(linkflags, nf_link(self, lib)) end local flags = {} - if not target:is_plat("macosx", "windows", "mingw") then + if not self:is_plat("macosx", "windows", "mingw") then local group = target:extraconf("linkgroups", linkgroup, "group") if group then table.join2(flags, "-Wl,--start-group", linkflags, "-Wl,--end-group") |
