2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-17 13:42:14 +00:00

Merge: Ugly trick to handle <runtime-debugging> like in V1

[SVN r35770]
This commit is contained in:
Vladimir Prus
2006-10-28 19:25:36 +00:00
parent f2b26b3138
commit 0ccf746e00

View File

@@ -762,8 +762,19 @@ local rule runtime-tag ( name : type ? : property-set )
local properties = [ $(property-set).raw ] ;
if <runtime-link>static in $(properties) { tag += s ; }
if <runtime-debugging>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
# <runtime-debugging> does not affect gcc toolset, the
# tag rules won't even see <runtime-debugging>.
# Similar functionality in V2 is not implemented yet, so we just
# check for toolsets which are know to care about runtime debug
if <toolset>msvc in $(properties)
|| <stdlib>stlport in $(properties)
{
if <runtime-debugging>on in $(properties) { tag += g ; }
}
if <variant>debug-python in $(properties) { tag += y ; }
if <variant>debug in $(properties) { tag += d ; }
if <stdlib>stlport in $(properties) { tag += p ; }