2
0
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:
Rene Rivera
2006-10-25 12:52:11 +00:00
parent 1e71ad0e20
commit 9bb1d36bda

View File

@@ -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) "[ .-:]" "_" ] ;
}