|
Boost-Build : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2004-10-11 03:25:12
Hi Toon,:
> Hello,
>
> In our project, there is one file that needs to be compiled with a lower
> level optimisation as all other files in a release build. The reason is
> that the algorithm in that file looses numeric precision with the
> highest level of optimisation. My question now is: how to achive this
> with bjam?
>
> I have for instance :
>
> lib libfoobar : foo.cpp bar.cpp : <threading>multi ;
>
> I can for instance suppress optimisation on the whole library doing:
>
> lib libfoobar : foo.cpp bar.cpp : <threading>multi <optimization>off ;
>
> However this suppresses optimization for the whole library. So how can I
> only suppress the optimisation in bar.cpp?
This question was asked a few times, so I've added a FAQ entry:
http://boost.org/boost-build2/doc/html/ch06s07.html
Does it answer your question?
- Volodya
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk