From 94e2af7680f1a94fbc487b83a18da7994fa4fbc0 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Wed, 25 Oct 2006 14:25:05 +0000 Subject: [PATCH] Fix guard for autodetect of command version and flavor. [SVN r35743] --- v2/tools/gcc.jam | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/tools/gcc.jam b/v2/tools/gcc.jam index e8e21e115..f903a920e 100644 --- a/v2/tools/gcc.jam +++ b/v2/tools/gcc.jam @@ -66,14 +66,14 @@ rule init ( version ? : command * : options * ) local bin ; # The flavor of compiler. local flavor = [ feature.get-values : $(options) ] ; - # AUtodetect the root and bin dir if not given. + # Autodetect the root and bin dir if not given. if $(command) { bin ?= [ common.get-absolute-tool-path $(command[-1]) ] ; root ?= $(bin:D) ; } # Autodetect the version and flavor if not given. - if $(bin) + if $(command) { local command-info = [ MATCH "^[^ ]+[ ]+[^ ]+[ ]+([^ ]+)[^(]*[(]?([^)]*)" : [ SHELL "$(command) --version" ] ] ;