diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-10-01 11:05:49 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-10-01 11:05:49 +0200 |
commit | 248b79eba58d88766c6fe3fb87f8dfda5f86a615 (patch) | |
tree | 2acde6176840cd00b5019203bc729794ed745e9f /libbuild2/utility.hxx | |
parent | f63c0548281015ca1f7d71079c0880e3634063fb (diff) |
Add notion of internal scope, translate external -I to -isystem or equivalent
Diffstat (limited to 'libbuild2/utility.hxx')
-rw-r--r-- | libbuild2/utility.hxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/libbuild2/utility.hxx b/libbuild2/utility.hxx index f9f1daa..b62d2ab 100644 --- a/libbuild2/utility.hxx +++ b/libbuild2/utility.hxx @@ -650,6 +650,26 @@ namespace build2 I begin, I end, F&& get = [] (const string& s) {return s;}); + // As above but append a single option (used for append/hash uniformity). + // + inline void + append_option (cstrings& args, const char* o) + { + args.push_back (o); + } + + inline void + append_option (strings& args, const char* o) + { + args.push_back (o); + } + + inline void + append_option (sha256& csum, const char* o) + { + csum.append (o); + } + // Check if a specified option is present in the variable or value. T is // either target or scope. For the interator version use rbegin()/rend() to // search backwards. |