summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-11-04 14:57:18 +0800
committerGitHub <[email protected]>2024-11-04 14:57:18 +0800
commit6809dd1fc95cd38686c9a67a3616519c7d226cfd (patch)
treee354e618b20074c07e95797f73dab650e6a6af6f
parent1c689fd23324695a9256b6d0ed5187f0c9f0c692 (diff)
parentd1ac10882e180f04148c9d14666d703701030020 (diff)
Merge pull request #5782 from xmake-io/flags
fix linker and compiler flags
-rw-r--r--xmake/core/package/package.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 5d8d6b111..d5fc901f1 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -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