Skip to content

Commit 9398a63

Browse files
committed
Implement --python-buildid.
Fixes #3544. Patch from Gaudenz Steinlin. [SVN r59987]
1 parent 1660730 commit 9398a63

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

build/Jamfile.v2

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
44

55
import os ;
6+
import indirect ;
67
import modules ;
78
import feature ;
89

@@ -41,8 +42,27 @@ py3-version = [ find-py3-version ] ;
4142

4243
project boost/python
4344
: source-location ../src
45+
: requirements
46+
-<tag>@$(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).tag
47+
<tag>@$(__name__).tag
4448
;
4549

50+
rule tag ( name : type ? : property-set )
51+
{
52+
local result = $(name) ;
53+
if $(type) in STATIC_LIB SHARED_LIB IMPORT_LIB
54+
{
55+
if $(name) = boost_python && $(PYTHON_ID)
56+
{
57+
result = $(result)-$(PYTHON_ID) ;
58+
}
59+
}
60+
61+
# forward to the boost tagging rule
62+
return [ indirect.call $(BOOST_JAMROOT_MODULE)%$(BOOST_JAMROOT_MODULE).tag
63+
$(result) : $(type) : $(property-set) ] ;
64+
}
65+
4666
rule cond ( test ? : yes * : no * ) { if $(test) { return $(yes) ; } else { return $(no) ; } }
4767
rule unless ( test ? : yes * : no * ) { if ! $(test) { return $(yes) ; } else { return $(no) ; } }
4868

0 commit comments

Comments
 (0)