Boost logo

Boost-Build :

Subject: [Boost-build] cxxflags bug ?
From: Paulo Márcio Figueiredo Alves (pauloalves1986_at_[hidden])
Date: 2011-04-06 14:33:56


  I'm trying to use /Zc:wchat_t- but it doesn't work (using msvc-9.0).
Searching for something I found this:

# msvc.jam
toolset.flags $(toolset).compile CFLAGS $(conditions) : /Zc:forScope
/Zc:wchar_t ;

and my jamfile.jam is like this:

project foo : requirements <cxxflags>/Zc:wchar_t- ;
exe foo : ;

bjam -d+2 output this:

1º - I've passed /Zc:wchar_t- and the output shows 2x /Zc:wchar_t
2º - If I remove the forced flag from msvc.jam I can't (and I don't
know why) pass /Zc:wchat_t-, because the suffix '-' just disappear
3º - I've chaged this:
        toolset.flags $(toolset).compile CFLAGS $(conditions) :
/Zc:forScope /Zc:wchar_t ;
        toolset.flags $(toolset).compile CFLAGS $(conditions) :
/Zc:forScope /Zc:wchar_t- ;
      It works if I do NOT use <cxxflags>/Zc:wchar_t-

Is that a bug ? Am I doing something wrong ?

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