From 88b346394054416213d3d4e81e0a213403eb2ff7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 24 Nov 2017 12:55:58 +0200 Subject: Add extra library search paths as -L options --- build2/utility.hxx | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'build2/utility.hxx') diff --git a/build2/utility.hxx b/build2/utility.hxx index 2fa7e6e..af26acd 100644 --- a/build2/utility.hxx +++ b/build2/utility.hxx @@ -355,6 +355,23 @@ namespace build2 void hash_options (sha256&, const strings&, size_t); + // As above but append/hash option values for the specified option (e.g., + // -I, -L). + // + template + void + append_option_values (cstrings&, + const char* opt, + I begin, I end, + F&& get = [] (const string& s) {return s.c_str ();}); + + template + void + hash_option_values (sha256&, + const char* opt, + I begin, I end, + F&& get = [] (const string& s) {return s;}); + // Check if a specified option is present in the variable or value. T is // either target or scope. // -- cgit v1.1