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:
@@ -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) ;
|
||||
}
|
||||
|
||||
@@ -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) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user