Re: GMAKE 3.81 vs GMAKE 4.2

nikhil jain <[email protected]>
Newsgroups gmane.comp.gnu.make.general
Message-ID <CAP-pfRXD0x_Ose9xxt4N23sXAmA4Gt33dwteq_ktT60t5Vm0Zg@mail.gmail.com>
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 <[email protected]> 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...
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.