Skip to content

Commit

Permalink
fix linker and compiler flags
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Nov 4, 2024
1 parent 1c689fd commit d1ac108
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions xmake/core/package/package.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2411,15 +2411,15 @@ function _instance:_generate_build_configs(configs, opt)
local compiler = self:compiler(sourcekind)
local cxflags = compiler:map_flags("runtime", runtimes, {target = self})
configs.cxflags = table.wrap(configs.cxflags)
table.join2(configs.cxflags, cxflags)
table.insert(configs.cxflags, cxflags)

local ldflags = self:linker("binary", sourcekind):map_flags("runtime", runtimes, {target = self})
configs.ldflags = table.wrap(configs.ldflags)
table.join2(configs.ldflags, ldflags)
table.insert(configs.ldflags, ldflags)

local shflags = self:linker("shared", sourcekind):map_flags("runtime", runtimes, {target = self})
configs.shflags = table.wrap(configs.shflags)
table.join2(configs.shflags, shflags)
table.insert(configs.shflags, shflags)
self.sourcekinds = nil
end
if self:config("lto") then
Expand Down

0 comments on commit d1ac108

Please sign in to comment.