Show stdout from toolchain in console #6772
-
Hello, just started with Xmake a couple days ago. One thing I would like to achieve and couldn't find an obvious way so far, is for toolchain commands (in my case, I'm cross-compiling with arm-none-eabi-gcc) to show their stdout output to the console without having to enable the verbose mode, which shows a lot more than I need. One example is showing the output of the linker to which I pass the '-Wl,--print-memory-usage' option. Any idea how to do this? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
try this patch. #6778 ruki@95d67944153d:/tmp/test$ xmake f --policies=build.linker.output
ruki@95d67944153d:/tmp/test$ xmake -r
[ 23%]: cache compiling.release src/main.cpp
[ 47%]: linking.release test
Memory region Used Size Region Size %age Used
[100%]: build ok, spent 0.502s or set_policy("build.linker.output", true) |
Beta Was this translation helpful? Give feedback.
-
Thanks! |
Beta Was this translation helpful? Give feedback.
try this patch. #6778
ruki@95d67944153d:/tmp/test$ xmake f --policies=build.linker.output ruki@95d67944153d:/tmp/test$ xmake -r [ 23%]: cache compiling.release src/main.cpp [ 47%]: linking.release test Memory region Used Size Region Size %age Used [100%]: build ok, spent 0.502s
or