More waf confusion

Eric S. Raymond esr at thyrsus.com
Wed Mar 29 13:11:04 UTC 2017


Hal Murray <hmurray at megapathdsl.net>:
> 
> >>   ##    ctx.check_cc(auto_add_header_name=True,
> >>   ##                 header_name="stddef.h",
> >>   ##                 mandatory=False)
> 
> > That might happen if you leave out the define_name argument.
> 
> I don't see a define_name arg to leave out.

Oh, crap.  Then that arg is optional and overrides a default.  I was
afraid that might be the case.

Hmmm...what happens if you add "define_name=None"?

> I poked around and didn't find useful documentation on either check_cc or 
> define_name.  I'm probably not looking in the right place.

check_cc is a waf built-in.  It's "documented" at https://waf.io/book/

The scare quites are because that documentation it pretty damned forbidding.
It's waf's one major weakness.
-- 
		<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>

Please consider contributing to my Patreon page at https://www.patreon.com/esr
so I can keep the invisible wheels of the Internet turning. Give generously -
the civilization you save might be your own.



More information about the devel mailing list