diff options
| author | ruki <[email protected]> | 2023-11-29 23:58:51 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2023-11-29 23:58:51 +0800 |
| commit | eb24a8f8dc6a9347b6af83d1edb7beece17d2956 (patch) | |
| tree | f405681c19810bb7458755a5f3a91bacb3ac67c6 /xmake/modules/core/tools/armlink.lua | |
| parent | 37f0edd18cb9f2fc95a8dbea1fb165983cf03f39 (diff) | |
improve to print output for armlink
Diffstat (limited to 'xmake/modules/core/tools/armlink.lua')
| -rw-r--r-- | xmake/modules/core/tools/armlink.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/xmake/modules/core/tools/armlink.lua b/xmake/modules/core/tools/armlink.lua index 939e8e24b..32b87ad35 100644 --- a/xmake/modules/core/tools/armlink.lua +++ b/xmake/modules/core/tools/armlink.lua @@ -71,7 +71,7 @@ function link(self, objectfiles, targetkind, targetfile, flags) function () os.mkdir(path.directory(targetfile)) local program, argv = linkargv(self, objectfiles, targetkind, targetfile, flags) - os.runv(program, argv) + return os.iorunv(program, argv) end, catch { @@ -122,6 +122,11 @@ function link(self, objectfiles, targetkind, targetfile, flags) cprint("${color.warning}%s", warnings) end end + + -- show echo output? e.g. --map data + if ok and outdata and #outdata > 0 and option.get("diagnosis") then + print(outdata) + end end } } |
