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

Merge: Unbreak multi-element gcc commands

[SVN r35792]
This commit is contained in:
Vladimir Prus
2006-10-30 08:36:14 +00:00
parent 0ccf746e00
commit ad4cb45ea4

View File

@@ -75,8 +75,11 @@ rule init ( version ? : command * : options * )
# Autodetect the version and flavor if not given.
if $(command)
{
# The 'command' variable can have multiple-element. When calling
# the SHELL builtin we need a single string.
local command-string = $(command:J=" ") ;
local command-info = [ MATCH "^[^ ]+[ ]+[^ ]+[ ]+([^ ]+)[^(]*[(]?([^)]*)"
: [ SHELL "$(command) --version" ] ] ;
: [ SHELL "$(command-string) --version" ] ] ;
version ?= $(command-info[1]) ;
switch $(command-info[2]:L)
{