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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user