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?

881 次查看
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 回复

809 次查看
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 项奖励
回复