From 406769f4dd6ed5aae04ade246d5b22e10224ea57 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Sat, 28 Oct 2006 19:25:36 +0000 Subject: [PATCH] Merge: Ugly trick to handle like in V1 [SVN r35770] --- src/tools/common.jam | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/tools/common.jam b/src/tools/common.jam index 35fe34615..2e188742b 100644 --- a/src/tools/common.jam +++ b/src/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 ; }