|
Boost-Build : |
Subject: [Boost-build] cxxflags bug ?
From: Paulo Márcio Figueiredo Alves (pauloalves1986_at_[hidden])
Date: 2011-04-06 14:33:56
Hi,
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 : main.cc ;
bjam -d+2 output this:
/O2
/Ob2
/W3
/GR
/MT
/Zc:forScope
/Zc:wchar_t
/wd4675
/EHs
/Zc:wchar_t
-c
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 ;
to:
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 acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk