Does xmake support to re-format compiler output (and how to)? #3663
Answered
by
waruqi
Patrick-Ze
asked this question in
Q&A
-
请问xmake是否支持接管编译器的输出(stdout和stderr)并重新格式化后再输出呢?例如,目前在用的一个嵌入式编译器Tasking,会产生类似如下格式的输出
这个输出格式非常不友好,不被大多数的IDE/编辑器支持,导致无法方便地跳转到代码,并且带有冗余的
当前在使用的构建工具是scons,是python编写的,可以通过hook代码来实现此功能,但是启动比较慢,想替换成xmake。请问在xmake中可以实现这样的功能吗?如果可以的话,能否指指路或者给一些提示? |
Beta Was this translation helpful? Give feedback.
Answered by
waruqi
Apr 21, 2023
Replies: 1 comment 3 replies
-
target 或者搞个 rule ,里面 before_build 加个 os.atexit , 处理下错误。
原始错误还是会输出,但通过这个你可以再显示一份格式化的。。 |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
Patrick-Ze
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
target 或者搞个 rule ,里面 before_build 加个 os.atexit , 处理下错误。
原始错误还是会输出,但通过这个你可以再显示一份格式化的。。