Ticket #4864: check-target-builds-patch

File check-target-builds-patch, 1.0 KB (added by Chris Newbold, 12 years ago)

Patch for check-target-builds to pass relevant properties along to the target executable

Line 
1--- //3rdparty/tmw/boost/tools/build/v2/build/configure.jam 2010-10-19 18:39:32.000000000 -0400
2+++ //3rdparty/tmw/boost/tools/build/v2/build/configure.jam 2010-12-14 23:10:07.000000000 -0500
3@@ -185,8 +185,12 @@
4 {
5 # FIXME: this should not be hardcoded. Other checks might
6 # want to consider different set of features as relevant.
7- local toolset = [ property.select <toolset> : $(properties) ] ;
8- local ps = [ property-set.create $(toolset) ] ;
9+ local toolset = [ property.select <toolset> : $(properties) ] ;
10+ local toolset-version-property = "<toolset-$(toolset:G=):version>" ;
11+ local relevant = [ property.select <target-os> <toolset> $(toolset-version-property)
12+ <address-model> <architecture> <variant>
13+ : $(properties) ] ;
14+ local ps = [ property-set.create $(relevant) ] ;
15 local t = [ targets.current ] ;
16 local p = [ $(t).project ] ;
17 if [ configure.builds $(self.target) : $(p) : $(ps) : "$(self.target) builds" ]
18