diff --git a/Jamfile b/Jamfile index d762eb8c1b..94d45d64b5 100644 --- a/Jamfile +++ b/Jamfile @@ -192,12 +192,6 @@ rule linking ( properties * ) result += hidden ; } - if msvc in $(properties) - { - # ask the compiler to correctly set __cplusplus version - result += on ; - } - if static in $(properties) { if shared in $(properties) @@ -361,6 +355,12 @@ rule building ( properties * ) # https://learn.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance?view=msvc-170 result += /permissive- ; } + + # ask the compiler to correctly set __cplusplus version + if msvc in $(properties) + { + result += on ; + } } @@ -692,8 +692,8 @@ feature export-extra : off on : composite propagated ; # symbol table reasonably small feature.compose on : TORRENT_EXPORT_EXTRA ; -# ask the compiler to correctly set __cplusplus version feature msvc-version-macro : off on : composite propagated link-incompatible ; +# ask the compiler to correctly set __cplusplus version feature.compose on : /Zc\:__cplusplus ; lib advapi32 : : advapi32 ;