Skip to content

Commit

Permalink
ask msvc to report the correct C++ version in __cplusplus macro
Browse files Browse the repository at this point in the history
  • Loading branch information
arvidn committed Nov 15, 2023
1 parent 9c18976 commit 2c38a14
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Jamfile
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,12 @@ rule linking ( properties * )
result += <visibility>hidden ;
}

if <toolset>msvc in $(properties)
{
# ask the compiler to correctly set __cplusplus version
result += <cxxflags>/Zc:__cplusplus ;
}

if <boost-link>static in $(properties)
{
if <link>shared in $(properties)
Expand Down

0 comments on commit 2c38a14

Please sign in to comment.