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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

882件の閲覧回数
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 件の賞賛
返信
1 返信

810件の閲覧回数
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 件の賞賛
返信