summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2022-10-13 22:59:53 +0800
committerruki <[email protected]>2022-10-13 22:59:53 +0800
commitc0c1fb0440fb7ce44a646776189a1cff07c8eb86 (patch)
tree1ce762e8f3fb34f37b976ffbffbc6f7b4b502c13
parent8737561ceb4347207db3fca3146a7dbcee02a9a9 (diff)
improve link info
-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?