[SVN r36449]
This commit is contained in:
Vladimir Prus 2006-12-18 13:14:48 +00:00
parent b0420deea4
commit 5de0d90074

View file

@ -127,6 +127,26 @@ else
;
}
rule handle-static-runtime ( properties * )
{
# This property combination is dangerous.
# Ideally, we'd add constraint to default build,
# so that user can build with property combination
# by hand. But we don't have any 'constraint' mechanism
# for default-build, so disable such builds in requirements.
# For CW, static runtime is needed so that
# std::locale works.
if <link>shared in $(properties)
&& <runtime-link>static in $(properties)
&& ! ( <toolset>cw in $(properties) )
{
return <build>no ;
}
}
project boost
: requirements <include>.
# disable auto-linking for all targets here,
@ -135,12 +155,7 @@ project boost
# Used to encode variant in target name. See the
# 'tag' rule below.
<tag>@$(__name__).tag
# This property combination is dangerous.
# Ideally, we'd add constraint to default build,
# so that user can build with property combination
# by hand. But we don't have any 'constraint' mechanism
# for default-build, so disable such builds in requirements.
<link>shared,<runtime-link>static:<build>no
<conditional>@handle-static-runtime
: usage-requirements <include>.
: build-dir bin.v2