From bf6ef576df22833711c3baa96e35d66ed6c335ce Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Thu, 23 Sep 2004 10:50:49 +0000 Subject: [PATCH] Borland toolset no longer crashes in bcc32 binary is not found. [SVN r25370] --- v2/tools/borland.jam | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/v2/tools/borland.jam b/v2/tools/borland.jam index 1b2dce884..32bbd4852 100644 --- a/v2/tools/borland.jam +++ b/v2/tools/borland.jam @@ -25,9 +25,12 @@ rule init ( version ? : command * ) local command = [ common.get-invocation-command borland : bcc32.exe : $(command) ] ; - - local root = [ common.get-absolute-tool-path $(command[-1]) ] ; - root = $(root:D) ; + + if $(command) + { + command = [ common.get-absolute-tool-path $(command[-1]) ] ; + } + root = $(command:D) ; toolset.flags borland.compile STDHDRS $(condition) : $(root)/include/ ; toolset.flags borland.link STDLIBPATH $(condition) : $(root)/lib ;