From 42aa67fccf593eb8352733aed1bd3ac1f26110dc Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 17 Apr 2015 15:34:29 +0200 Subject: Tune buildspec heuristics --- build/b.cxx | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'build') diff --git a/build/b.cxx b/build/b.cxx index 8ba4eb0..01ca248 100644 --- a/build/b.cxx +++ b/build/b.cxx @@ -358,11 +358,14 @@ main (int argc, char* argv[]) // if (v.empty () || v == "." || v == ".." || tn.type == "dir") out_base = dir_path (v); - else + // + // Otherwise, if this is a simple name, see if there is a + // directory part in value. + // + else if (tn.type.empty ()) { - // See if there is a directory part in value. We cannot - // assume it is a valid filesystem name so we will have - // to do the splitting manually. + // We cannot assume it is a valid filesystem name so we + // will have to do the splitting manually. // path::size_type i (path::traits::rfind_separator (v)); -- cgit v1.1