How can you make a project build fail when a dependent project build fails?

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

How can you make a project build fail when a dependent project build fails?

884 Views
np
Contributor IV

In a headless build, I have a top-level project that I'm trying to use to build many (30+) independent subprojects.

However, MCUXpresso / Eclipse assumes that if a subproject build fails, then the top-level project build will always automatically fail (e.g. because the .lib file output by the subproject is missing), which isn't true here. Hence, annoyingly, the headless build reports that the main project build has succeeded even though one or more of the subproject builds are failing.

So: is there any MCUXpresso / Eclipse trick to tell it to report a top-level build as failing when a (dependent) subproject build fails?

Currently, the nearest to this I can get is for the top-level project to have a post-build script that verifies that the artifacts produced by all the subprojects have been produced correctly. However, there are lots of parts of my overall build that this doesn't work for.

Thanks!

0 Kudos
Reply
1 Reply

812 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hi np 

As far as I know, MCUXpresso IDE doesn't  have this feasute.

This is more a eclipse issue. I suggest you querying https://www.eclipse.org/forums/

Thanks,

Jun Zhang

0 Kudos
Reply