diff options
| author | ruki <[email protected]> | 2022-10-13 23:00:41 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-10-13 23:00:41 +0800 |
| commit | e4950610568e270b3cdd106ab278b7a7989f7861 (patch) | |
| tree | d8e66fe302f0b39d8894a07eec228b53be4af971 | |
| parent | c0c1fb0440fb7ce44a646776189a1cff07c8eb86 (diff) | |
improve link
| -rw-r--r-- | xmake/modules/core/tools/gcc.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/gcc.lua b/xmake/modules/core/tools/gcc.lua index 0a89fdbe3..1c3a29c01 100644 --- a/xmake/modules/core/tools/gcc.lua +++ b/xmake/modules/core/tools/gcc.lua @@ -377,7 +377,11 @@ end function link(self, objectfiles, targetkind, targetfile, flags) os.mkdir(path.directory(targetfile)) local program, argv = linkargv(self, objectfiles, targetkind, targetfile, flags) - os.vrunv(program, argv, {envs = self:runenvs()}) + if option.get("verbose") then + os.execv(program, argv, {envs = self:runenvs()}) + else + os.runv(program, argv, {envs = self:runenvs()}) + end end -- has color diagnostics? |
