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" ] ] ;