mirror of
https://github.com/boostorg/build.git
synced 2026-02-18 14:02:11 +00:00
(merge from head) Use the passed in command instead of a fixed one to account for custom and versioned commands. Thanks to Jurge Hunold for the report/patch.
[SVN r35742]
This commit is contained in:
@@ -76,7 +76,7 @@ rule init ( version ? : command * : options * )
|
||||
if $(bin)
|
||||
{
|
||||
local command-info = [ MATCH "^[^ ]+[ ]+[^ ]+[ ]+([^ ]+)[^(]*[(]?([^)]*)"
|
||||
: [ SHELL "$(bin)/gcc --version" ] ] ;
|
||||
: [ SHELL "$(command) --version" ] ] ;
|
||||
version ?= $(command-info[1]) ;
|
||||
flavor ?= [ regex.replace $(command-info[2]:L) "[ .-:]" "_" ] ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user