From a59639b60853edd89574a884b6f2d95c64a35c5d Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Sat, 22 Aug 2009 08:21:07 +0000 Subject: [PATCH] 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] --- src/build/generators.jam | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/build/generators.jam b/src/build/generators.jam index 1b7a269bb..1515525f2 100644 --- a/src/build/generators.jam +++ b/src/build/generators.jam @@ -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) = * {