aboutsummaryrefslogtreecommitdiff
path: root/build2/utility.ixx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-07-29 11:21:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-07-29 11:21:41 +0200
commitcece3cd62c794515dc26ced655eb0b164a1ed79b (patch)
tree9817bc794dfa056c4484d10453dab2f9b5f188eb /build2/utility.ixx
parent97913b6fb268f327ee1a689779cb9b0621f72ff2 (diff)
Make /EHsc and /MD default for VC compiler
Diffstat (limited to 'build2/utility.ixx')
-rw-r--r--build2/utility.ixx31
1 files changed, 29 insertions, 2 deletions
diff --git a/build2/utility.ixx b/build2/utility.ixx
index d215ea3..f957875 100644
--- a/build2/utility.ixx
+++ b/build2/utility.ixx
@@ -50,8 +50,35 @@ namespace build2
template <typename T>
inline bool
- find_option (const char* option, T& s, const char* var, bool ic)
+ find_option (const char* o, T& s, const char* var, bool ic)
{
- return find_option (option, s[var], ic);
+ return find_option (o, s[var], ic);
+ }
+
+ template <typename T>
+ inline bool
+ find_options (initializer_list<const char*> os,
+ T& s,
+ const char* var,
+ bool ic)
+ {
+ return find_options (os, s[var], ic);
+ }
+
+ template <typename T>
+ inline bool
+ find_option_prefix (const char* p, T& s, const char* var, bool ic)
+ {
+ return find_option_prefix (p, s[var], ic);
+ }
+
+ template <typename T>
+ inline bool
+ find_option_prefixes (initializer_list<const char*> ps,
+ T& s,
+ const char* var,
+ bool ic)
+ {
+ return find_option_prefixes (ps, s[var], ic);
}
}