Boost logo

Boost :

Subject: Re: [boost] [build] Default compiler options for a toolset
From: Edward Diener (eldiener_at_[hidden])
Date: 2013-11-20 16:37:21


On 11/19/2013 10:37 AM, Steven Watanabe wrote:
> AMDG
>
> On 11/18/2013 09:06 PM, Edward Diener wrote:
>> On 11/18/2013 11:05 PM, Steven Watanabe wrote:
>>>
>>> Look at the properties. If you compile with
>>> async-exceptions=on extern-c-nothrow=on, you'll
>>> get /EHac, for instance. The default for
>>> both is "off"
>>
>> Are "defaults" harcoded somewhere or are they in some .jam file ?
>>
>
> The default value is set when the feature is
> declared (in builtin.jam).
>
>> In the original command line I showed:
>>
>> "tuple.cpp" -Fo"some_long_path\tuple.obj" -TP /Z7 /Od /Ob0 /W4 /GR
>> /MDd /Zc:forScope /Zc:wchar_t /wd4675 /EHs -c
>>
>
> -TP is used to create a precompiled header. /Z7 comes from
> debug-symbols=on, debug-store=object. /Od comes from
> optimization=off. /Ob0 comes from inlining=off, /W4
> comes from warnings=all. /GR comes from rtti=on. /MDd
> is runtime-debugging=on, runtime-link=shared.
> /Zc:forScope /Zc:wchar_t /wd4675 are added unconditionally.
>
> (Note that setting variant=debug is equivalent to
> optimization=off, debug-symbols=on, inlining=off,
> runtime-debugging=on)

I tried adding these lines to the clang-win.jam file:

toolset.flags clang-win.compile C++FLAGS
<exception-handling>on/<asynch-exceptions>off/<extern-c-nothrow>off : "" ;
toolset.flags clang-win.compile C++FLAGS
<exception-handling>on/<asynch-exceptions>off/<extern-c-nothrow>on : "" ;
toolset.flags clang-win.compile C++FLAGS
<exception-handling>on/<asynch-exceptions>on/<extern-c-nothrow>off : "" ;
toolset.flags clang-win.compile C++FLAGS
<exception-handling>on/<asynch-exceptions>on/<extern-c-nothrow>on : "" ;

but the command line was still called with the /EHs option from the
inherited msvc.jam C++FLAGS.


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