Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix deduction of architecture and address-model #879

Merged
merged 1 commit into from
Apr 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 20 additions & 11 deletions boostcpp.jam
Original file line number Diff line number Diff line change
Expand Up @@ -620,15 +620,18 @@ rule deduce-address-model ( properties * )
: /boost/architecture//64 "64-bit" ] ;
result = $(names[$(idx)]) ;

if $(result)
local am = [ property.select <address-model> : $(properties) ] ;
if ! $(am)
{
# Normally, returning composite feature here is equivalent to forcing
# constituent properties as well. But we only want to indicate toolset
# deduced default, so also pick whatever address-model is explicitly
# specified, if any.
result = <deduced-address-model>$(result) [ property.select <address-model> : $(properties) ] ;
return <deduced-address-model>$(result) ;
}
return $(result) ;

if $(am:G=) = $(result)
{
return <deduced-address-model>$(result) $(am) ;
}

return ;
}

rule address-model ( )
Expand Down Expand Up @@ -660,12 +663,18 @@ rule deduce-architecture ( properties * )
: /boost/architecture//combined ] ;
result = $(names[$(idx)]) ;

if $(result)
local arch = [ property.select <architecture> : $(properties) ] ;
if ! $(arch)
{
# See comment in deduce-address-model.
result = <deduced-architecture>$(result) [ property.select <architecture> : $(properties) ] ;
return <deduced-architecture>$(result) ;
}
return $(result) ;

if $(arch:G=) = $(result)
{
return <deduced-architecture>$(result) $(arch) ;
}

return ;
}

rule architecture ( )
Expand Down
Loading