From 235330995e2be4d47bc3da346ea34e927e6950a9 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Fri, 28 Oct 2016 11:30:41 +0300 Subject: Support additional tagging of binaries by Python version. --- boostcpp.jam | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'boostcpp.jam') diff --git a/boostcpp.jam b/boostcpp.jam index f45d12ef2f..38113c46c6 100644 --- a/boostcpp.jam +++ b/boostcpp.jam @@ -163,6 +163,19 @@ rule tag ( name : type ? : property-set ) } } +# Specialized tag function to use for libraries linking to Python. +# Appends value of --python-buildid if provided. +rule python-tag ( name : type ? : property-set ) +{ + local result = $(name) ; + if $(type) in STATIC_LIB SHARED_LIB IMPORT_LIB && $(PYTHON_ID) + { + result = $(result)-$(PYTHON_ID) ; + } + + # forward to the boost tagging rule + return [ tag $(result) : $(type) : $(property-set) ] ; +} ################################################################################ # -- cgit v1.2.1