Custom Build and error catching

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Custom Build and error catching

258 次查看
Bijam
Contributor II

Hello,

In S32DS 3.5, I'm using a custom build command by calling a ".bat" file (instead of the classic build).

Bijam_0-1736842966469.png

In addition to compiling / linking my code, tThe .bat execute addtional pre and post build steps.
It's working OK.

If I have some coding error, S32DS catch the error and indicates in the console that the build failed.

Bijam_2-1736845657017.png


My issue is that whenever an error occurs during the post and pre build actions, I fire a  error in the .bat (exit code != 0).  
ex: "exit /b 2"

This error is not interpreted correctly by eclipse. The build stops, but it doesn't indicate that the build failed. Thus the coder doesn't see directly that is an error, without looking at the console.

Bijam_3-1736845729147.png

 

What can I do in S32DS to mark the build as failed in this case ?

 

Thank you




 

 

 

 

0 项奖励
回复
0 回复数