From eb24a8f8dc6a9347b6af83d1edb7beece17d2956 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 29 Nov 2023 23:58:51 +0800 Subject: improve to print output for armlink --- xmake/modules/core/tools/armlink.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 } } -- cgit v1.3.1