From bef7c36a3479b9b83eaf4be9ef090b21d6468f12 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 13 Jul 2015 10:01:36 +0200 Subject: Make subprojects list of name=subdir pairs --- build/b.cxx | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'build/b.cxx') diff --git a/build/b.cxx b/build/b.cxx index 387df1c..36d0b21 100644 --- a/build/b.cxx +++ b/build/b.cxx @@ -464,11 +464,8 @@ main (int argc, char* argv[]) { for (const name& n: v.as ()) { - // Should be a list of directories. - // - if (!n.type.empty () || !n.value.empty () || n.dir.empty ()) - fail << "expected directory in subprojects variable " - << "instead of " << n; + if (n.pair != '\0') + continue; // Skip project names. if (out_base.sub (out_root / n.dir)) fail << tn << " is in a subproject of " << out_root << -- cgit v1.1