From fc18a6dc1fcb02b505f07914e484cebbaf268698 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 19 Apr 2016 09:24:38 +0200 Subject: Redesign src/out scoping We no longer enter paths from the src tree into scope map. Instead, targets from the src tree now include their out tree directory (in essence their "configuration"). This is then used to find a target's scope. See the comment in class target for details. The result of this change is that we can now again build multiple configurations (out trees) for same project at once. --- build2/search | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'build2/search') diff --git a/build2/search b/build2/search index df9b73f..70ae73a 100644 --- a/build2/search +++ b/build2/search @@ -18,10 +18,14 @@ namespace build2 target* search_existing_target (const prerequisite_key&); - // Search for an existing file in the specified list of search paths. + // Search for an existing file in the scope's src directory. Prerequisite + // directory should be relative. + // + // 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. // target* - search_existing_file (const prerequisite_key&, const dir_paths&); + search_existing_file (const prerequisite_key&); // Create a new target in this prerequisite's scope. // -- cgit v1.1