-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pipe build output during build process #1676
Comments
During my investigation into this issue, I discovered that the problem does not lie with
and executed each underlying command individually. The same behavior (long waits/delayed logs) was observed. The reason being Command output is always buffered. This means commands running in parallel don’t interleave their output, and when a command fails we can print its failure output next to the full command line that produced the failure. When building the same example with other generator tools, we receive real-time console logs. |
Reproducing the above using
The output gets streamed and is not buffered Unless we decide to move away from ninja, there does not seem to be away to solve this problem. |
I believe the solution is to set
It works for me when using the manual CMake invocation described here: See also https://www.scivision.dev/cmake-external-project-ninja-verbose/ It sets in Not sure if we should:
A good test example is: https://github.com/Arm-Examples/mlek-cmsis-pack-examples |
I can confirm that adding USES_TERMINAL_BUILD works great to show progress on compiling the subprojects. |
The Problem To Be Solved
Larger applications takes several seconds to build. During that time, cbuild does not show any messages which makes the user believe that the system crashed.
Other build systems pipe output during the build process. The user sees that files are compiled.
The text was updated successfully, but these errors were encountered: