开发者

Any way to stop Eclipse CDT build?

开发者 https://www.devze.com 2023-01-14 15:16 出处:网络
I\'m attempting to build a project in Eclipse CDT and the 开发者_如何学Pythonbuild process fails early on, but then takes minutes to finish computing and finally quit.

I'm attempting to build a project in Eclipse CDT and the 开发者_如何学Pythonbuild process fails early on, but then takes minutes to finish computing and finally quit.

How, through the Eclipse IDE, can I stop the build process.

I know there must be some way because I can delete any random file from the Project Explorer and a box pops up with the processes and I can click the red box next to build and it quits. But I shouldn't be required to delete a random file to get that box to pop up. Where is it?


There is a "progress view" found at Windows->Show View->other->General->Progress. That has the little red square I need to stop any particular task.


FYI - there's also a setting in the Properties sheet to "Stop on first build error".

Under the C/C++ Build item in the Properties page, click on the configuration you wish to modify, choose the Behavior tab, and click the checkbox under "Build Settings" ("Stop on first build error").

You can still use John's method to stop the build at any time, but if you're looking to have the build stop when you first encounter an error instead of continuing on, this setting might be helpful.


I use -Wfatal-errors flag in Makefile in Eclipse to prevent polluting my console

-Wfatal-errors This option causes the compiler to abort compilation on the first error occurred rather than trying to keep going and printing further error messages. https://gcc.gnu.org/onlinedocs/gcc-4.9.2/gcc/Warning-Options.html


You can disable the console's annoying focus-stealing behavior both for the build messages (so you can get the progress dialog to stay open) and for your program's console output (when debugging multiple threads). Go to window->preferences->C/C++/Build/Console and you'll find an option "Bring console to top when building (if present)". Uncheck that and you then can pause the build as you wish. To keep your program output chilled you can go here: http://georgik.sinusgear.com/2011/12/22/how-to-disable-stealing-of-focus-by-console-in-eclipse/

0

精彩评论

暂无评论...
验证码 换一张
取 消