Boost logo

Boost-Build :

From: Jürgen Hunold (hunold+lists.Boost_at_[hidden])
Date: 2003-03-04 03:02:28


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Vladimir !

On Monday 03 March 2003 17:06, Vladimir Prus wrote:

>liba is build with <optimization>off, so it builds boost with the
>same
> property. I agree that this is bad idea in this case, but I think
>you should
> use a different mechanism. Consider:
> exe hello : hello.cpp a ;
> obj a : a.cpp : <optimization>off ;
> This will build hello as usual, and a.obj without optimization. Even
>if hello
> depends on some libraries, they will be compiled in the usual way. I
>attach
> an example, please use "bjam release" to see the results.
> Do you have any problems with this approach (except that it's not
>documented ;-) )
 
Actually no. It would even be better, because it elimintates one
library.
But this does not work as you wrote. It still builds boost and any
<depency> library with optimization-off. You can reproduce this by
modifiying liba/Jamfile from my last test case to use your method.

It seems bjam constructs a "main-target-obj" for each obj, which is in
turn dependent on libx with optimization-off.

Yours,
Jürgen

- --
* Dipl.-Math. Jürgen Hunold ! Institut für Verkehrswesen,
Eisenbahnbau
* voice: ++49 511 762-2529 ! und -betrieb, Universität Hannover
* fax : ++49 511 762-3001 ! Appelstrasse 9a, D-30167 Hannover
* hunold_at_[hidden] ! www.ive.uni-hannover.de
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+ZF2XljbJ/LLrxrYRAjaIAJ9YtTCMbHLEjQf9P5oDahnPJ5trWACghZv2
rpm/mg0jczGuPT0Eg4T4OBw=
=JEi5
-----END PGP SIGNATURE-----

 


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