revert names of conditional features for deduction

The old names were referenced in Boost libraries and it's easier to
return to old names than fixing every reference.
This commit is contained in:
Dmitry Arkhipov 2024-05-02 15:54:34 +03:00
parent 98b17a472c
commit 7053e76188

View file

@ -616,7 +616,7 @@ for a in $(.deducible-architectures)
feature.compose <x-deduced-platform>$(a)_64 : <architecture>$(a) <address-model>64 ;
}
rule deduce-platform ( properties * )
rule deduce-architecture ( properties * )
{
local deduced-pl = [ property.select <x-deduced-platform> : $(properties) ] ;
if $(deduced-pl)
@ -669,7 +669,13 @@ rule deduce-platform ( properties * )
}
rule deduce-address-model ( properties * )
{
# this rule is a noop and exists for legacy reasons
}
rule platform ( )
{
return <conditional>@boostcpp.deduce-platform ;
return <conditional>@boostcpp.deduce-architecture
<conditional>@boostcpp.deduce-address-model ;
}