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

Fix viable-source-types-for-generator-real looping thinko.

The loop over 'source-types' was meant to terminate if we ever get
'*'. However, it was for loop, and assinging empty list to
source-types had no effect. As result, the function would
sometimes return a list containing '*' and other types, which
other code did not expect and mishandled.


[SVN r55712]
This commit is contained in:
Vladimir Prus
2009-08-22 08:21:07 +00:00
parent 563035f05f
commit a59639b608

View File

@@ -952,8 +952,10 @@ rule viable-source-types-for-generator-real ( generator )
else
{
local result ;
for local s in $(source-types)
while $(source-types)
{
local s = $(source-types[1]) ;
source-types = $(source-types[2-]) ;
local viable-sources = [ generators.viable-source-types $(s) ] ;
if $(viable-sources) = *
{