Boost logo

Boost-Build :

From: David Abrahams (gclbb-jamboost_at_[hidden])
Date: 2003-10-07 09:30:08

"pfrants" <patrick_at_[hidden]> writes:

> Hi,
> First of all: I am still using V1.
> I stumble upon a bug in one of the libstdc++ library header files,
> which involves inline assembler. The problem is that the code
> compiles (gcc) fine with optimization levels 1 to 3, but using level
> 0 results in incorrect behaviour.
> I wrapped the call to these functions in one source file
> root/QBase/OS/InterlockedFunctions.cpp. My goal is to prevent bjam
> from using the -Oo flag on this source file. I could find no
> references to turning certain flags on or off for specific source
> files in the documentation or this yahooo group. How can I achieve my
> goal?

There's no way to do it on a file-by-file basis. You can split the
file out into a separate static library and use <debug><cxxflags>-O1.


Dave Abrahams
Boost Consulting

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