diff options
| author | ruki <[email protected]> | 2023-01-26 23:09:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-01-26 23:09:36 +0800 |
| commit | 197cfd153cd5b03360ba2d0c9515690cd038b0a7 (patch) | |
| tree | 5451f00b27f42f24c86bb645d0ec749e9365d079 /xmake/modules/core/tools/gcc.lua | |
| parent | 535529d5e08cf8fc0f2d624508c4ef145bce12c3 (diff) | |
improve link for gcc
Diffstat (limited to 'xmake/modules/core/tools/gcc.lua')
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index 07729240e..a6fc6fb45 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -388,17 +388,13 @@ end -- link the target file -- --- maybe we need use os.vrunv() to show link output when enable verbose information +-- 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) - if option.get("verbose") then - os.execv(program, argv, {envs = self:runenvs()}) - else - os.runv(program, argv, {envs = self:runenvs()}) - end + os.vrunv(program, argv, {envs = self:runenvs()}) end -- has color diagnostics? |
