diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-07 10:05:47 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2017-02-13 12:42:42 +0200 |
commit | bcfcc38538af8bb896551c9e5730767807ad7a67 (patch) | |
tree | 722e71364bf6d8080ca61d8b2d02879520d90765 /build2/cc/common | |
parent | 7b9eb752cad04aaadc4552d0f26d307b04af1869 (diff) |
Tighten code that operates during both search/match and execute
Diffstat (limited to 'build2/cc/common')
-rw-r--r-- | build2/cc/common | 17 |
1 files changed, 14 insertions, 3 deletions
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<dir_paths>&, - const prerequisite_key&) const; + const prerequisite_key&, + bool existing = false) const; + + const target* + search_library_existing (const dir_paths& sysd, + optional<dir_paths>& 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; }; } |