From ebab11cba0a16759c66b1eef55f8ea4cfcdf824b Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Wed, 25 Oct 2006 19:43:35 +0000 Subject: [PATCH] Limit the flavor to certain toolsets. For now only MinGW. [SVN r35745] --- v2/tools/gcc.jam | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 ;