summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/core/tools/gcc.lua6
1 files changed, 5 insertions, 1 deletions
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?