Custom Build and error catching

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

Custom Build and error catching

309件の閲覧回数
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 返答(返信)