From 9bb1d36bda26466953a2feef4337920adb8d7602 Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Wed, 25 Oct 2006 12:52:11 +0000 Subject: [PATCH] (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] --- src/tools/gcc.jam | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/gcc.jam b/src/tools/gcc.jam index 779a8eeec..e8e21e115 100644 --- a/src/tools/gcc.jam +++ b/src/tools/gcc.jam @@ -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) "[ .-:]" "_" ] ; }