help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GMAKE 3.81 vs GMAKE 4.2


From: nikhil jain
Subject: Re: GMAKE 3.81 vs GMAKE 4.2
Date: Fri, 6 May 2022 00:14:29 +0530

Hi Brian,

I am not using -k.

My question is how do I print the exit status in the make itself
before exiting make. May be at the last of main.c (main function) ? but how
? Which variable stores the exit code just before make exits ?

Thanks
Nikhil

On Thu, May 5, 2022 at 11:48 PM Brian Cowan <cowanb22@us.ibm.com> wrote:

> Unless you have specified -k, a non-zero result from executing the build
> script will cause make to terminate with a non-zero return code. If you use
> -k, I would expect a non-zero return code from make even after the make
> continues. It seems to do that in my rather stilted test… I’m not sure of
> the utility of -k, but I have seen environments where *a* component would
> fail in the first pass of a -k build, and then complete successfully in a
> second -k build. Sometimes it's faster to just run the build 2x than to
> chase down what's happening in the build dependencies...
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]