From 6cb9d0e810c3336106b6c1f3c8a80cdec6fbdcf0 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 22 Nov 2017 11:31:35 +0200 Subject: Fix dist bug where missing source file would be silently ignored --- build2/search.hxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'build2/search.hxx') diff --git a/build2/search.hxx b/build2/search.hxx index 043a216..79c7853 100644 --- a/build2/search.hxx +++ b/build2/search.hxx @@ -18,8 +18,11 @@ namespace build2 const target* search_existing_target (const prerequisite_key&); - // Search for an existing file in the scope's src directory. Prerequisite - // directory should be relative. + // Search for an existing file. If the prerequisite directory is relative, + // then look in the scope's src directory. Otherwise, if the absolute + // directory is inside the project's root scope, look there. In case of + // the absolute directory, if the scope is NULL, assume the file is not + // in src. // // Originally the plan was to have a target-type specific variable that // contains the search paths. But there wasn't any need for this yet. -- cgit v1.1