Fighting waf for C preprocessor output.
Andrew Bartlett
abartlet at samba.org
Sat Mar 14 06:48:47 UTC 2020
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
Andrew Bartlett
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
More information about the samba-technical
mailing list