Opened 7 years ago

Last modified 7 years ago

#11909 new Bugs

Bjam loses trailing dash sign in Cxxflags command line parameter

Reported by: Yuriy Martsynovskyy <captainsilver@…> Owned by:
Milestone: To Be Determined Component: Building Boost
Version: Boost 1.60.0 Severity: Problem
Keywords: Cc:

Description

Building boost on Windows with MSVC++ 2015 toolset using this command line:

b2 -a --toolset=msvc-14.0 --build-type=complete --with-serialization --stagedir=stage stage cxxflags=/Zc:threadSafeInit-

as a result, cl.exe actually gets called with /Zc:threadSafeInit parameter (trailing '-' is lost), which reverses the meaning of the flag

I tried "cxxflags=/Zc:threadSafeInit-", cxxflags="/Zc:threadSafeInit-" with the same result

Change History (1)

comment:1 by Yuriy Martsynovskyy <captainsilver@…>, 7 years ago

Fixed by adding a space at the end:

cxxflags="/Zc:threadSafeInit- "

then it does not remove the '-' sign

Note: See TracTickets for help on using tickets.