Re: [Boost-bugs] [Boost C++ Libraries] #896: <native-wchar_t>off does not work when build with vc-8.0

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #896: <native-wchar_t>off does not work when build with vc-8.0
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2007-11-15 18:31:43


#896: <native-wchar_t>off does not work when build with vc-8.0
----------------------+-----------------------------------------------------
  Reporter: sielenk | Owner: grafik
      Type: Bugs | Status: closed
 Milestone: | Component: build
   Version: None | Severity: Showstopper
Resolution: fixed | Keywords:
----------------------+-----------------------------------------------------
Changes (by grafik):

  * status: assigned => closed
  * resolution: Later => fixed
  * severity: => Showstopper

Old description:

> {{{
> When the boost libraries are build with the build flag '-sBUILD="<native-
> wchar_t>off"' the resulting binaries still use the native wchar_t type.
>
> Reason/Fix:
> In vc-8_0-tools.jam the feature is defined as follows:
> --- snip ---
> feature native-wchar_t : on off ;
> flags vc-8_0 C++FLAGS : /Zc:forScope ;
> flags vc-8_0 C++FLAGS <native-wchar_t>on : /Zc:wchar_t ;
> --- snip ---
>
> But since 'on' is the default value for the new compiler, the defined
> flags are redundant and the flags for 'off' are missing.
>
> To fix, change it to
> --- snip ---
> feature native-wchar_t : on off ;
> flags vc-8_0 C++FLAGS : /Zc:forScope ;
> flags vc-8_0 C++FLAGS <native-wchar_t>off : /Zc:wchar_t- ;
> --- snip ---
>
> }}}

New description:

 {{{
 When the boost libraries are build with the build flag '-sBUILD="<native-
 wchar_t>off"' the resulting binaries still use the native wchar_t type.

 Reason/Fix:
 In vc-8_0-tools.jam the feature is defined as follows:
 --- snip ---
 feature native-wchar_t : on off ;
 flags vc-8_0 C++FLAGS : /Zc:forScope ;
 flags vc-8_0 C++FLAGS <native-wchar_t>on : /Zc:wchar_t ;
 --- snip ---

 But since 'on' is the default value for the new compiler, the defined
 flags are redundant and the flags for 'off' are missing.

 To fix, change it to
 --- snip ---
 feature native-wchar_t : on off ;
 flags vc-8_0 C++FLAGS : /Zc:forScope ;
 flags vc-8_0 C++FLAGS <native-wchar_t>off : /Zc:wchar_t- ;
 --- snip ---

 }}}

Comment:

 It seems BBv2 now handles this with brute force. It just turns on native
 wchar for any msvc >= 7. And there is no feature to do otherwise.

--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/896#comment:2>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.


This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:57 UTC