From c0c1fb0440fb7ce44a646776189a1cff07c8eb86 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 13 Oct 2022 22:59:53 +0800 Subject: improve link info --- xmake/modules/core/tools/gcc.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index b7866c710..0a89fdbe3 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -370,10 +370,14 @@ function linkargv(self, objectfiles, targetkind, targetfile, flags, opt) end -- link the target file +-- +-- maybe we need use os.vrunv() to show link output when enable verbose information +-- @see https://github.com/xmake-io/xmake/discussions/2916 +-- function link(self, objectfiles, targetkind, targetfile, flags) os.mkdir(path.directory(targetfile)) local program, argv = linkargv(self, objectfiles, targetkind, targetfile, flags) - os.runv(program, argv, {envs = self:runenvs()}) + os.vrunv(program, argv, {envs = self:runenvs()}) end -- has color diagnostics? -- cgit v1.3.1