Opened 7 years ago
Last modified 7 years ago
#11909 new Bugs
Bjam loses trailing dash sign in Cxxflags command line parameter
Reported by: | 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
Note:
See TracTickets
for help on using tickets.
Fixed by adding a space at the end:
cxxflags="/Zc:threadSafeInit- "
then it does not remove the '-' sign