Do not ignore pre-build error

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Do not ignore pre-build error

Jump to solution
479 Views
jakub_tymejczyk
Contributor I

How to stop building project if pre-build step fails?

 

I want to stop building project as soon as pre-build step fails.

To test I added command `false` to pre-build step.
Output is `make[1]: [makefile:211: pre-build] Error 1 (ignored)` but compilation continues. I want to stop process after that.

0 Kudos
1 Solution
463 Views
lpcxpresso_supp
NXP Employee
NXP Employee

According to the official Eclipse documentation, the main build gets executed regardless the success/failure of the pre-build step - see [1]. I think you might need to invoke your scripts through rules from the actual makefile.

Regards,
MCUXpresso IDE Support

[1] https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Freference%2Fcdt_u_prop...

View solution in original post

0 Kudos
1 Reply
464 Views
lpcxpresso_supp
NXP Employee
NXP Employee

According to the official Eclipse documentation, the main build gets executed regardless the success/failure of the pre-build step - see [1]. I think you might need to invoke your scripts through rules from the actual makefile.

Regards,
MCUXpresso IDE Support

[1] https://help.eclipse.org/latest/index.jsp?topic=%2Forg.eclipse.cdt.doc.user%2Freference%2Fcdt_u_prop...

0 Kudos