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