Boost logo

Boost :

From: Richard Hadsell (hadsell_at_[hidden])
Date: 2008-05-17 12:04:49


Rene Rivera wrote:
> But that will then cause problems for architectures that don't use those
> options. The two "correct" solutions to this are either:
>
> * Have BBv2 autodetect the host architecture and set that as the default
> instead of dealing with an empty architecture value.
>
> * Have users specify in the user-config.jam which architecture the
> compiler defaults to:
>
> toolset.add-requirements <toolset>gcc:<architecture>x86 ;
>
> (Adjusting the toolset name to be as specific as needed)
>
You are welcome to fix it in whatever way makes sense to you. I assumed
that BBv2 already implemented your first option (detecting the host
architecture), and that's the fix I would favor.

Since all 3 architectures mentioned in gcc.jam use the same gcc options
for 32-bit vs. 64-bit code, it seems reasonable that gcc would use the
same options for any future architectures. So my suggestion shouldn't
break any builds currently supported, and it works now, not waiting for
a BBv2 fix.

-- 
Dick Hadsell			914-259-6320  Fax: 914-259-6499
Reply-to:			hadsell_at_[hidden]
Blue Sky Studios                http://www.blueskystudios.com
44 South Broadway, White Plains, NY 10601

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk