From 0af6b88ca983fad147b15aba85b547ca0c50e34e Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 20 Oct 2018 05:08:52 +0300 Subject: [PATCH] Make stage-locate (and BOOST_STAGE_LOCATE) in boostcpp.jam absolute paths --- boostcpp.jam | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/boostcpp.jam b/boostcpp.jam index ea79e4cf51..efc41c1ed8 100644 --- a/boostcpp.jam +++ b/boostcpp.jam @@ -109,7 +109,16 @@ if $(layout) = system && $(build-type) = complete # Possible stage only location. stage-locate = [ option.get stagedir ] ; -stage-locate ?= stage ; + +if $(stage-locate) +{ + stage-locate = [ path.root [ path.make $(stage-locate) ] [ path.pwd ] ] ; +} +else +{ + stage-locate = $(BOOST_ROOT)/stage ; +} + BOOST_STAGE_LOCATE = $(stage-locate) ; # Custom build ID. @@ -427,9 +436,6 @@ rule declare_top_level_targets ( libraries * ) } -stage-abs = [ path.native [ path.root $(stage-locate)/lib [ path.pwd ] ] ] ; - - ################################################################################ # # 4. Add hook to report configuration before the build, and confirmation with @@ -456,7 +462,6 @@ rule pre-build ( ) IMPORT $(__name__) : pre-build : : $(__name__).pre-build ; build-system.set-pre-build-hook $(__name__).pre-build ; -# FIXME: Revise stage_abs. rule post-build ( ok ? ) { if forward in [ modules.peek : top-level-targets ] @@ -464,6 +469,8 @@ rule post-build ( ok ? ) if $(ok) { local include-path = [ path.native $(BOOST_ROOT) ] ; + local stage-abs = [ path.native $(stage-locate)/lib ] ; + ECHO " The Boost C++ Libraries were successfully built!