# because in that case it will be impossible to register versionless
# intel-linux and intel-win toolsets of a specific version.
local t = $(toolset) ;
- local m = [ MATCH ([^-]*)- : $(toolset) ] ;
+ local m = [ MATCH "([^-]*)-" : $(toolset) ] ;
if $(m)
{
t = $(m[1]) ;
{
local r = <toolset>$(toolset) $(requirement) ;
r = $(r:J=,) ;
- toolset.add-requirements $(r):$(subcondition) ;
+ toolset.add-requirements "$(r):$(subcondition)" ;
}
# We add the requirements, if any, to the condition to scope the toolset
if $(.show-configuration)
{
- ECHO notice: $(condition) ;
+ ECHO "notice:" $(condition) ;
}
return $(condition:J=/) ;
}
command = [ find-tool $(tool) : $(additional-paths) : $(path-last) ] ;
if ! $(command) && $(.debug-configuration)
{
- ECHO warning: toolset $(toolset) initialization: can not find tool
+ ECHO "warning:" toolset $(toolset) "initialization:" can not find tool
$(tool) ;
- ECHO warning: initialized from [ errors.nearest-user-location ] ;
+ ECHO "warning:" initialized from [ errors.nearest-user-location ] ;
}
}
else
command = [ check-tool $(user-provided-command) ] ;
if ! $(command) && $(.debug-configuration)
{
- ECHO warning: toolset $(toolset) initialization: ;
- ECHO warning: can not find user-provided command
+ ECHO "warning:" toolset $(toolset) "initialization:" ;
+ ECHO "warning:" can not find user-provided command
'$(user-provided-command)' ;
- ECHO warning: initialized from [ errors.nearest-user-location ] ;
+ ECHO "warning:" initialized from [ errors.nearest-user-location ] ;
}
}
{
if $(.debug-configuration)
{
- ECHO notice: will use '$(command)' for $(toolset), condition
+ ECHO "notice:" will use '$(command)' for $(toolset), condition
$(condition:E=(empty)) ;
}
{
switch $(s)
{
- case *: : s = ;
- case *:\\ : s = ;
+ case "*:" : s = ;
+ case "*:\\" : s = ;
}
}
case edg* : tag += edg ;
case gcc* :
{
- switch [ $(property-set).get <toolset-gcc:flavor> ]
+ switch [ $(property-set).get <target-os> ]
{
- case *mingw* : tag += mgw ;
+ case *windows* : tag += mgw ;
case * : tag += gcc ;
}
}
case tru64cxx* : tag += tru ;
case vacpp* : tag += xlc ;
}
- local version = [ MATCH <toolset.*version>([0123456789]+)[.]([0123456789]*)
+ local version = [ MATCH "<toolset.*version>([0123456789]+)[.]([0123456789]*)"
: $(properties) ] ;
# For historical reasons, vc6.0 and vc7.0 use different naming.
if $(tag) = vc
# "<qt>4.6.0" will result in tag "qt460"
local rule qt-tag ( name : type ? : property-set )
{
- local v = [ MATCH ([0123456789]+)[.]?([0123456789]*)[.]?([0123456789]*) :
+ local v = [ MATCH "([0123456789]+)[.]?([0123456789]*)[.]?([0123456789]*)" :
[ $(property-set).get <qt> ] ] ;
return qt$(v:J=) ;
}