summaryrefslogtreecommitdiff
path: root/xmake/modules
diff options
context:
space:
mode:
authorruki <[email protected]>2024-05-11 20:55:57 +0800
committerruki <[email protected]>2024-05-11 20:55:57 +0800
commit262aedb8baaf5f87513f2e7e7ddf2f42450bc720 (patch)
treed889937d415e0642ecbc0eada84f73f32f21b802 /xmake/modules
parent2d0f7082ce3346e71445a94d0c492472150b94b7 (diff)
fix program
Diffstat (limited to 'xmake/modules')
-rw-r--r--xmake/modules/core/tools/gcc_ar.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc_ar.lua b/xmake/modules/core/tools/gcc_ar.lua
index 8a063bead..4fba49e6d 100644
--- a/xmake/modules/core/tools/gcc_ar.lua
+++ b/xmake/modules/core/tools/gcc_ar.lua
@@ -62,12 +62,12 @@ function link(self, objectfiles, targetkind, targetfile, flags, opt)
--
-- gcc-ar is the wrapper of `ar --plugin lto_plugin.so ...`
--
- program = program:gsub("gcc%-ar", "ar")
local _, rawargv = linkargv(self, objectfiles, targetkind, targetfile, flags, table.join(opt, {rawargs = true}))
local plugin_path = _get_gcc_liblto_plugin_path(self, program)
if plugin_path then
argv = winos.cmdargv(table.join({"--plugin", plugin_path}, rawargv), {escape = true})
end
+ program = program:gsub("gcc%-ar", "ar")
end
-- link it