diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2021-10-01 11:05:49 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2021-10-01 12:04:38 +0200 |
commit | db8336a686a85f0e458acb2d5f1ad442585bfc9a (patch) | |
tree | d0e9aa2ce76eb2f208a5d63a1258cf218af2aacc /libbuild2/utility.hxx | |
parent | d4457a6427401ed4d5c09eba00cac84c5664f250 (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. |