|
Boost Users : |
From: Yuval Ronen (ronen_yuval_at_[hidden])
Date: 2007-05-16 13:54:20
David Abrahams wrote:
> on Wed May 16 2007, Yuval Ronen <ronen_yuval-AT-yahoo.com> wrote:
>
>> Yuval Ronen wrote:
>>> Vladimir Prus wrote:
>>>> Yuval Ronen wrote:
>>>>
>>>>> Can I pass a command line argument of some sort to tell Boost.Build V2
>>>>> to disable some specific MSVC warnings?
>>>> bjam cxxflags=<whatever-MSVC-option-you-want>
>>>>
>>>> should work.
>>> It doesn't. I tried
>>>
>>> bjam --toolset=msvc-8.0 cxxflags=/wd4251
>>>
>>> but bjam spits errors about invalid arguments
>
> What are the *exact* error messages?
The exact command line was
bjam --toolset=msvc-8.0 --without-python cxxflags=/wd4251 stage
and the exact output was
D:/Projects/Boost/boost_1_34_0/tools/build/v2/build\property.jam:282: in
validate1 from module property
error: Invalid property '<cxxflags>': No value specified for feature
'cxxflags'.
D:/Projects/Boost/boost_1_34_0/tools/build/v2/build\property.jam:290: in
property.validate from module property
D:/Projects/Boost/boost_1_34_0/tools/build/v2/build\build-request.jam:185:
in convert-command-line-element from module build-request
D:/Projects/Boost/boost_1_34_0/tools/build/v2/build\build-request.jam:143:
in build-request.from-command-line from module build-request
D:/Projects/Boost/boost_1_34_0/tools/build/v2\build-system.jam:265: in
load from module build-system
D:\Projects\Boost\boost_1_34_0\tools\build\v2/kernel\modules.jam:261: in
import from module modules
D:\Projects\Boost\boost_1_34_0\tools\build\v2/kernel/bootstrap.jam:132:
in boost-build from module
D:\Projects\Boost\boost_1_34_0\boost-build.jam:9: in module scope from
module
>>> and aborts without building anything. So I tried
>>>
>>> bjam --toolset=msvc-8.0 --cxxflags=/wd4251
>>>
>>> and it was better, but not good enough.
>
> No, --cxxflags is not a valid option. Only cxxflags=... will have
> anything remotely like the right effect. The other one will be ignored.
As someone else pointed out, it would be nice if wrong options would
generate an error message rather than being ignored...
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net