diff --git a/v2/tools/gcc.jam b/v2/tools/gcc.jam index f903a920e..d767436d6 100644 --- a/v2/tools/gcc.jam +++ b/v2/tools/gcc.jam @@ -78,7 +78,10 @@ rule init ( version ? : command * : options * ) local command-info = [ MATCH "^[^ ]+[ ]+[^ ]+[ ]+([^ ]+)[^(]*[(]?([^)]*)" : [ SHELL "$(command) --version" ] ] ; version ?= $(command-info[1]) ; - flavor ?= [ regex.replace $(command-info[2]:L) "[ .-:]" "_" ] ; + switch $(command-info[2]:L) + { + case *mingw* : flavor ?= mingw ; + } } local condition ;