summaryrefslogtreecommitdiff
path: root/user/boost/dual-python.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-24 00:33:10 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-06-24 00:33:10 -0500
commit6ba5a0b49b0e93a8db97bd9afc5afb2a18588e07 (patch)
tree11d20e6a9a2ed44c5cac4483c0269f47dbc0148b /user/boost/dual-python.patch
parent8f427be8c954ca358fb56d82cb9dc9329d024548 (diff)
downloadpackages-6ba5a0b49b0e93a8db97bd9afc5afb2a18588e07.tar.gz
packages-6ba5a0b49b0e93a8db97bd9afc5afb2a18588e07.tar.bz2
packages-6ba5a0b49b0e93a8db97bd9afc5afb2a18588e07.tar.xz
packages-6ba5a0b49b0e93a8db97bd9afc5afb2a18588e07.zip
boost: move to user/
Diffstat (limited to 'user/boost/dual-python.patch')
-rw-r--r--user/boost/dual-python.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/user/boost/dual-python.patch b/user/boost/dual-python.patch
new file mode 100644
index 000000000..6a0647888
--- /dev/null
+++ b/user/boost/dual-python.patch
@@ -0,0 +1,27 @@
+diff --git a/tools/build/src/tools/python.jam b/tools/build/src/tools/python.jam
+index cbd6419..0c29df6 100644
+--- a/tools/build/src/tools/python.jam
++++ b/tools/build/src/tools/python.jam
+@@ -907,14 +907,14 @@ local rule configure ( version ? : cmd-or-prefix ? : includes * : libraries ? :
+ # for a particular target OS as the default. This makes it so that we can
+ # select a python interpreter with only knowledge of the target OS. And hence
+ # can configure different Pythons based on the target OS only.
+- local toolset-requirements = [ toolset.requirements ] ;
+- local toolset-target-os-requirements
+- = [ property.evaluate-conditionals-in-context
+- [ $(toolset-requirements).raw ] : <target-os>$(target-os) ] ;
+- if ! <python> in $(toolset-target-os-requirements:G)
+- {
+- toolset.add-requirements <target-os>$(target-os):<python>$(version:E=default) ;
+- }
++# local toolset-requirements = [ toolset.requirements ] ;
++# local toolset-target-os-requirements
++# = [ property.evaluate-conditionals-in-context
++# [ $(toolset-requirements).raw ] : <target-os>$(target-os) ] ;
++# if ! <python> in $(toolset-target-os-requirements:G)
++# {
++# toolset.add-requirements <target-os>$(target-os):<python>$(version:E=default) ;
++# }
+
+ # Register the right suffix for extensions.
+ register-extension-suffix $(extension-suffix) : $(target-requirements) ;