From 262aedb8baaf5f87513f2e7e7ddf2f42450bc720 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 11 May 2024 20:55:57 +0800 Subject: fix program --- xmake/modules/core/tools/gcc_ar.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.3.1