Fighting waf for C preprocessor output.

Jeremy Allison jra at samba.org
Sat Mar 14 17:06:24 UTC 2020


On Sat, Mar 14, 2020 at 09:19:21AM +0100, Thomas Nagy wrote:
> On Fri, 13 Mar 2020 20:15:55 -0700, Jeremy Allison via samba-technical <samba-technical at lists.samba.org> wrote:
> 
> > Does anyone know how to make waf generate
> > the actual gcc command line it uses to
> > compile .c -> .o ?
> > 
> > Doing:
> > 
> > PYTHONHASHSEED=1 WAF_MAKE=1  ./buildtools/bin/waf -v build
> > 
> > causes it to dump out a python array, bracketed
> > by [] characters, but I was hoping not to have
> > to fight it any more :-).
> 
> Try this instead:
> WAF_CMD_FORMAT=string PYTHONHASHSEED=1 WAF_MAKE=1  ./buildtools/bin/waf -v build

Thanks Thomas, the help is much appreciated !



More information about the samba-technical mailing list