From b17027983d0c3ce0401ced78e97bafc9f87cfe47 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Tue, 21 Oct 2003 07:47:33 +0000 Subject: [PATCH] Tweak. * new/generators.jam (generator.convert-multiple-sources-to-consumable-types): New parameter 'multiple'. [SVN r20437] --- new/generators.jam | 5 +++-- v2/build/generators.jam | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/new/generators.jam b/new/generators.jam index 7e341bae2..6def82ac5 100644 --- a/new/generators.jam +++ b/new/generators.jam @@ -550,8 +550,9 @@ class generator # Converts several files to consumable types. rule convert-multiple-sources-to-consumable-types - ( project : property-set : sources * : consumed-var bypassed-var ) + ( project : property-set : sources * : consumed-var bypassed-var : multiple ? ) { + multiple ?= * ; # We process each source one-by-one, trying to convert it to # a usable type. local failed ; @@ -561,7 +562,7 @@ class generator local _b ; # TODO: need to check for failure on each source. convert-to-consumable-types $(project) : $(property-set) - : $(sources[1]) : * : true : _c _b ; + : $(sources[1]) : $(multiple) : true : _c _b ; if ! $(_c) { generators.dout [ indent ] " failed to convert " [ $(sources[1]).str ] ; diff --git a/v2/build/generators.jam b/v2/build/generators.jam index 7e341bae2..6def82ac5 100644 --- a/v2/build/generators.jam +++ b/v2/build/generators.jam @@ -550,8 +550,9 @@ class generator # Converts several files to consumable types. rule convert-multiple-sources-to-consumable-types - ( project : property-set : sources * : consumed-var bypassed-var ) + ( project : property-set : sources * : consumed-var bypassed-var : multiple ? ) { + multiple ?= * ; # We process each source one-by-one, trying to convert it to # a usable type. local failed ; @@ -561,7 +562,7 @@ class generator local _b ; # TODO: need to check for failure on each source. convert-to-consumable-types $(project) : $(property-set) - : $(sources[1]) : * : true : _c _b ; + : $(sources[1]) : $(multiple) : true : _c _b ; if ! $(_c) { generators.dout [ indent ] " failed to convert " [ $(sources[1]).str ] ;