Boost logo

Boost-Build :

Subject: Re: [Boost-build] Python port development
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-07-09 15:12:38


Artyom wrote:
>>> This is now supported through the configure module.
>>>> - Build time checks like sizeof something.
>>> This isn't possible now, but can be implemented via the
>>> same mechanisms that are used to check if a target builds.
>> I can confirm this. Yesterday I did just that. And used it for configuration
>> of
>> wxWidgets with Boost.Build, for defining SIZEOF_WCHAR_T macro appropriately
>> (other sizeofs weren't required for now).
>> Very funny coincidence that this talk and my implementation happened at nearly
>> the same, I must say ;-)
> How did you do this? Using negative array size trick?

I would also be interested in knowing exactly how you did this.
The way I would handle it would be to build a program
that prints the size and read the output.

In Christ,
Steven Watanabe

Boost-Build list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at