diff --git a/v2/tools/common.jam b/v2/tools/common.jam index 35fe34615..2e188742b 100644 --- a/v2/tools/common.jam +++ b/v2/tools/common.jam @@ -762,8 +762,19 @@ local rule runtime-tag ( name : type ? : property-set ) local properties = [ $(property-set).raw ] ; if static in $(properties) { tag += s ; } - if on in $(properties) { tag += g ; } + # This is ugly thing. In V1, there's a code to automatically + # detect which properties affect a target. So, if + # does not affect gcc toolset, the + # tag rules won't even see . + # Similar functionality in V2 is not implemented yet, so we just + # check for toolsets which are know to care about runtime debug + if msvc in $(properties) + || stlport in $(properties) + { + if on in $(properties) { tag += g ; } + } + if debug-python in $(properties) { tag += y ; } if debug in $(properties) { tag += d ; } if stlport in $(properties) { tag += p ; }