Boost logo

Boost-Build :

From: Edward Diener (eldiener_at_[hidden])
Date: 2019-07-09 12:47:47

I would like to include different bjam code, using the 'include' rule,
into a jamfile based on the address-model used when b2 is invoked. Is
this doable, and if so how ? Would it make any difference if the jamfile
involved were 'user-config.jam' ?

Essentially I need to use different toolset definitions depending on
whether the compile is for 32 bit or 64-bit code and I thought the
easiest way to do this would be just to include different toolset
definitions into my user-config.jam depending on the address model. If
there is a better way to do this within bjam I would love to know what
it is. Most of the toolsets involved are compilers but some are just
other tools such as zip libraries like bzip2 and there is also the
python toolset.

My current method of doing this is to link a 32-bit user-config to
user-config.jam when I do 32-bit compile and a 64-bit user-config to
user-config.jam when I do a 64-bit compile, but this has always seemed
to me to be kludgy even if it does work, and I am hoping that bjam has
the ability to solve this without my kludge.

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