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

Fix locale support for metrowerks

[SVN r19620]
This commit is contained in:
Dave Abrahams
2003-08-15 18:31:28 +00:00
parent f920a0eef1
commit b6d4e9f402
2 changed files with 42 additions and 0 deletions

View File

@@ -2391,3 +2391,24 @@ rule unless ( test ? : no-value * : yes-value * )
rule cond ( test ? : yes-value * : no-value * )
{ if $(test) { return $(yes-value) ; } else { return $(no-value) ; } }
# Stick this rule name in your requirements if you are building code
# which requires locale support. It handles the metrowerks-specific
# case that locale support demands the static version of the runtime
# library.
rule std::locale-support ( toolset variant : subvariant-path properties * )
{
if [ MATCH .*(metrowerks|cwpro).* : $(toolset) ]
{
local p = [ MATCH (.*)runtime-link-dynamic(.*) : $(subvariant-path) ] ;
subvariant-path = $(p[1])runtime-link-static$(p[2]) ;
properties =
[ difference $(properties) : <runtime-link>dynamic ]
<runtime-link>static
;
}
return $(subvariant-path) $(properties) ;
}

View File

@@ -2391,3 +2391,24 @@ rule unless ( test ? : no-value * : yes-value * )
rule cond ( test ? : yes-value * : no-value * )
{ if $(test) { return $(yes-value) ; } else { return $(no-value) ; } }
# Stick this rule name in your requirements if you are building code
# which requires locale support. It handles the metrowerks-specific
# case that locale support demands the static version of the runtime
# library.
rule std::locale-support ( toolset variant : subvariant-path properties * )
{
if [ MATCH .*(metrowerks|cwpro).* : $(toolset) ]
{
local p = [ MATCH (.*)runtime-link-dynamic(.*) : $(subvariant-path) ] ;
subvariant-path = $(p[1])runtime-link-static$(p[2]) ;
properties =
[ difference $(properties) : <runtime-link>dynamic ]
<runtime-link>static
;
}
return $(subvariant-path) $(properties) ;
}