diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-22 11:31:35 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-11-22 11:31:35 +0200 |
commit | 6cb9d0e810c3336106b6c1f3c8a80cdec6fbdcf0 (patch) | |
tree | eb2475162e91e81fded9645df54d6e199c6c3fc5 /build2/search.hxx | |
parent | 1a2ea6db0d5de8c5cabb4fedc845ce9e72cccff0 (diff) |
Fix dist bug where missing source file would be silently ignored
Diffstat (limited to 'build2/search.hxx')
-rw-r--r-- | build2/search.hxx | 7 |
1 files changed, 5 insertions, 2 deletions
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. |