2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-18 14:02:11 +00:00

(merge from head) Fix guard for autodetect of command version and flavor.

[SVN r35744]
This commit is contained in:
Rene Rivera
2006-10-25 14:26:26 +00:00
parent 9bb1d36bda
commit 035cc1b676

View File

@@ -66,14 +66,14 @@ rule init ( version ? : command * : options * )
local bin ;
# The flavor of compiler.
local flavor = [ feature.get-values <flavor> : $(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" ] ] ;