File tree Expand file tree Collapse file tree 1 file changed +20
-11
lines changed Expand file tree Collapse file tree 1 file changed +20
-11
lines changed Original file line number Diff line number Diff line change @@ -620,15 +620,18 @@ rule deduce-address-model ( properties * )
620
620
: /boost/architecture//64 "64-bit" ] ;
621
621
result = $(names[$(idx)]) ;
622
622
623
- if $(result)
623
+ local am = [ property.select <address-model> : $(properties) ] ;
624
+ if ! $(am)
624
625
{
625
- # Normally, returning composite feature here is equivalent to forcing
626
- # constituent properties as well. But we only want to indicate toolset
627
- # deduced default, so also pick whatever address-model is explicitly
628
- # specified, if any.
629
- result = <deduced-address-model>$(result) [ property.select <address-model> : $(properties) ] ;
626
+ return <deduced-address-model>$(result) ;
630
627
}
631
- return $(result) ;
628
+
629
+ if $(am:G=) = $(result)
630
+ {
631
+ return <deduced-address-model>$(result) $(am) ;
632
+ }
633
+
634
+ return ;
632
635
}
633
636
634
637
rule address-model ( )
@@ -660,12 +663,18 @@ rule deduce-architecture ( properties * )
660
663
: /boost/architecture//combined ] ;
661
664
result = $(names[$(idx)]) ;
662
665
663
- if $(result)
666
+ local arch = [ property.select <architecture> : $(properties) ] ;
667
+ if ! $(arch)
664
668
{
665
- # See comment in deduce-address-model.
666
- result = <deduced-architecture>$(result) [ property.select <architecture> : $(properties) ] ;
669
+ return <deduced-architecture>$(result) ;
667
670
}
668
- return $(result) ;
671
+
672
+ if $(arch:G=) = $(result)
673
+ {
674
+ return <deduced-architecture>$(result) $(arch) ;
675
+ }
676
+
677
+ return ;
669
678
}
670
679
671
680
rule architecture ( )
You can’t perform that action at this time.
0 commit comments