build
build copied to clipboard
variant=release runtime-debugging=on does not enable assertions as stated in documentation
The runtime-debugging says:
Specifies whether produced object files, executables, and libraries should include behavior useful only for debugging, such as asserts. Typically, the value of this feature is implicitly set by the
variantfeature, but it can be explicitly specified by the user. The most common usage is to build release variant with debugging output.
https://github.com/boostorg/build/blob/7d9866256d1ce46abaf8355bb618cdebab9cfe62/src/tools/features/runtime-feature.jam#L13-L17
And I believed it because the variant=release documentation does not list <define>NDEBUG
https://github.com/boostorg/build/blob/7d9866256d1ce46abaf8355bb618cdebab9cfe62/src/tools/features/variant-feature.jam#L24-L27
while in reality it expands to
https://github.com/boostorg/build/blob/7d9866256d1ce46abaf8355bb618cdebab9cfe62/src/tools/builtin.jam#L50-L51
Thank you for your contributions. Main development of B2 has moved to https://github.com/bfgroup/b2 This issue has been automatically marked as "transition" to indicate the potential for needing transition to the new B2 development project.