aboutsummaryrefslogtreecommitdiff
path: root/build2/utility.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-11-24 12:55:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-11-24 12:55:58 +0200
commit88b346394054416213d3d4e81e0a213403eb2ff7 (patch)
treeab633c53682749452a0f0503869714069df55f2b /build2/utility.hxx
parent9bfd3788071d8e6f938d5b34366562fdfc300c68 (diff)
Add extra library search paths as -L options
Diffstat (limited to 'build2/utility.hxx')
-rw-r--r--build2/utility.hxx17
1 files changed, 17 insertions, 0 deletions
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 <typename I, typename F>
+ void
+ append_option_values (cstrings&,
+ const char* opt,
+ I begin, I end,
+ F&& get = [] (const string& s) {return s.c_str ();});
+
+ template <typename I, typename F>
+ 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.
//