|
Boost-Build : |
From: Noel Belcourt (kbelco_at_[hidden])
Date: 2006-06-21 19:24:36
On Jun 19, 2006, at 1:01 AM, Vladimir Prus wrote:
> On Sunday 18 June 2006 04:02, Tomas Puverle wrote:
>> In the sun.jam toolset file, I see the following code (this is HEAD in
>> CVS):
>>
>> flags sun.compile OPTIONS <optimization>speed : -fast -xarch=generic ;
>>
>> Could you remove the -xarch=generic, please? There are 2 reasons:
>>
>> 1) When speccifying an architecture using -xarch/-xtarget, it needs
>> to
>> come before the compilation type (e.g. -fast) flags
I think this is incorrect. On the Sun, -fast will set or modify
architecture specific settings.
From the Sun CC man page under the -fast description...
Incorrect:
example% CC -xarch=v9 -fast test.cc
Correct:
example% CC -fast -xarch=v9 test.cc
So we always want -fast to precede architecture specific options like
-xarch and -xtarget on the command line.
-- Noel
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