This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I am using CCS4 and using the command line to build my workspace. Is there a way to make the command line build halt when an error occurs during the build? Or is there any way, when the command line build is complete, to get an indication that any errors occurred? In my case, my workspace contains many projects, so if an error occurs during the build of one of the projects there is no way to easily tell an error occurred. The build does not halt, and when it's done it just says "CCS headless build complete!".
Hi,
Although I haven't tested it in command-line builds, the project settings have a way to control the behaviour of the build. Right click on a project --> Build Properties --> C/C++ Build --> tab Build Settings --> option Build Command. By default the build is done by calling make -k (keep going even if errors occur). By simply removing the -k option your builds should stop in the first error.
Hope this helps,
Rafael
Hello Rafael,
Thanks for the suggestion but it doesn't help. I need a way for the workspace build to stop when any project within the workspace has an error during the build. For example if my workspace has projects A, B and C, when I build the workspace I want the build to stop if there is an error during the build of project A. What actually happens is the build for project A stops but then projects B and C are still built.
Thanks,
Don