From d1ac10882e180f04148c9d14666d703701030020 Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 4 Nov 2024 23:21:26 +0800 Subject: [PATCH] fix linker and compiler flags --- xmake/core/package/package.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua index 5d8d6b1117..d5fc901f1f 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