From 67f9726cf1dd4376f140a8895dca69250ac63e8a Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Mon, 2 Aug 2010 18:46:04 +0000 Subject: [PATCH] Fix reporting of sources that have no type. [SVN r64550] --- v2/build/generators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v2/build/generators.py b/v2/build/generators.py index 405d48d31..9421b3f25 100644 --- a/v2/build/generators.py +++ b/v2/build/generators.py @@ -888,7 +888,7 @@ def __ensure_type (targets): """ for t in targets: if not t.type (): - raise BaseException ("target '%s' has no type" % str (t)) + get_manager().errors()("target '%s' has no type" % str (t)) def find_viable_generators_aux (target_type, prop_set): """ Returns generators which can be used to construct target of specified type @@ -1061,7 +1061,7 @@ def construct (project, name, target_type, prop_set, sources, top_level=False): __active_generators = [] global __construct_stack - if __construct_stack: + if not __construct_stack: __ensure_type (sources) __construct_stack.append (1)