On 4/5/2010 10:53 AM, Dave Korn wrote:
> On 04/04/2010 18:53, Charles Wilson wrote:
>> Can anybody confirm that this sort of thing will continue to work, even
>> with LTO turned on?
> 
>   There's surely no need to build the wrapper with LTO just because the target
> application is built that way?

No, but the wrapper is built using the target compiler, with all of the
target flags.  We've talked about maybe filtering that command (e.g.
strip "-Werror" -- or "-WX" for cl.exe -- just so that slight problems
in the cwrapper don't bring someone's build to a crashing halt).  But so
far, nothing along those lines has happened.

>   As for whether it would get dropped if you did, I'd imagine that's quite
> plausible; you might want to add a volatile qualifier.

'static volatile const char * MAGIC = ...'
        ^^^^^^^^^^^^^^
err...maybe just 'volatile'!

--
Chuck


Reply via email to