2
0
mirror of https://github.com/boostorg/build.git synced 2026-02-16 01:12:13 +00:00

Limit the flavor to certain toolsets. For now only MinGW.

[SVN r35745]
This commit is contained in:
Rene Rivera
2006-10-25 19:43:35 +00:00
parent 94e2af7680
commit ebab11cba0

View File

@@ -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 ;