Fighting waf for C preprocessor output.

Jeremy Allison jra at samba.org
Sat Mar 14 17:05:49 UTC 2020


On Sat, Mar 14, 2020 at 07:48:47PM +1300, Andrew Bartlett via samba-technical wrote:
> On Fri, 2020-03-13 at 21:58 -0700, Jeremy Allison via samba-technical
> wrote:
> > On Fri, Mar 13, 2020 at 08:15:55PM -0700, Jeremy Allison via samba-technical 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 :-).
> > 
> > Never mind, I turned it into a command line using
> > the magic of Emacs macros :-).
> 
> I wrote this script to help a while ago:
> https://wiki.samba.org/index.php/Testing_removal_of_ifdef_or_configure_checks#A_script_to_help

Oh that's really helpful Andrew, thanks a bunch !

I'll save that off in my 'useful waf tools' folder :-).



More information about the samba-technical mailing list