2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 01:12:13 +00:00

Fix guard for autodetect of command version and flavor.

[SVN r35743]
This commit is contained in:
Rene Rivera
2006-10-25 14:25:05 +00:00
parent 4c423da9b6
commit 94e2af7680

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