From bcfcc38538af8bb896551c9e5730767807ad7a67 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 7 Feb 2017 10:05:47 +0200 Subject: Tighten code that operates during both search/match and execute --- build2/cc/common | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'build2/cc/common') diff --git a/build2/cc/common b/build2/cc/common index 860913e..c631f38 100644 --- a/build2/cc/common +++ b/build2/cc/common @@ -217,7 +217,16 @@ namespace build2 target* search_library (const dir_paths&, optional&, - const prerequisite_key&) const; + const prerequisite_key&, + bool existing = false) const; + + const target* + search_library_existing (const dir_paths& sysd, + optional& usrd, + const prerequisite_key& pk) const + { + return search_library (sysd, usrd, pk, true); + } dir_paths extract_library_dirs (const scope&) const; @@ -237,12 +246,14 @@ namespace build2 bin::liba* msvc_search_static (const process_path&, const dir_path&, - const prerequisite_key&) const; + const prerequisite_key&, + bool existing) const; bin::libs* msvc_search_shared (const process_path&, const dir_path&, - const prerequisite_key&) const; + const prerequisite_key&, + bool existing) const; }; } -- cgit v1.1