Unending build task

I forgot a semicolon in a header file, when I built a task using Kendryte-sdk, the build was throwing storage class specified errors continuously - may be few thousand lines of repeated errors, but the build wasn’t ending, it went on an infinite loop. How to make the build-task stop after x number of errors? I killed the terminal window.

I do the same as you probably did … just hit the trash icon to kill the terminal … but you can also click on the terminal console and press Ctrl+C (on Windows, anyway) to kill the build process and keep the output.