From a7d89154ad4b9ab29a441d137d46c4e9b4933a91 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Wed, 3 Dec 2014 10:31:17 +0300 Subject: [PATCH] Make use of inspect and wave tools conditional. When using bcp, the inspect tool is normally not copied, and wave tool is not copied unless wave library is requested. However, Jamroot unconditionally refers to those projects via use-project. It's not entirely clear why it does so, and the commits that add reference have no rationale. This commit takes the safe route of guarding use of these projects with the check for their presence. --- Jamroot | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Jamroot b/Jamroot index c7561fe1bb..35ae3c0c47 100644 --- a/Jamroot +++ b/Jamroot @@ -235,8 +235,15 @@ for local l in $(all-libraries) use-project /boost/$(l) : libs/$(l)/build ; } -use-project /boost/tools/inspect : tools/inspect/build ; -use-project /boost/libs/wave/tool : libs/wave/tool/build ; +if [ path.exists tools/inspect ] +{ + use-project /boost/tools/inspect : tools/inspect/build ; +} + +if [ path.exists libs/wave/tool ] +{ + use-project /boost/libs/wave/tool : libs/wave/tool/build ; +} # This rule should be called from libraries' Jamfiles and will create two # targets, "install" and "stage", that will install or stage that library. The