diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-08-08 14:55:26 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-08-10 15:02:45 +0300 |
commit | a1b2319ff2ddc8a6f139ee364cabe236ca62e23e (patch) | |
tree | 401acff7ca7f009455aa355f5e1e008f0b50810c /build2/cxx/link.cxx | |
parent | 5352f2fb6b911c804e70ea98c1bb335c54fea6b5 (diff) |
Add ignore case support for find_option()
Diffstat (limited to 'build2/cxx/link.cxx')
-rw-r--r-- | build2/cxx/link.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/build2/cxx/link.cxx b/build2/cxx/link.cxx index 4ac5c43..d19d6b1 100644 --- a/build2/cxx/link.cxx +++ b/build2/cxx/link.cxx @@ -466,15 +466,10 @@ namespace build2 auto upcase_sanitize = [] (char c) -> char { - if (c >= 'a' && c <='z') - { - const unsigned char shift ('a' - 'A'); - return c - shift; - } - else if (c == '-' || c == '+' || c == '.') + if (c == '-' || c == '+' || c == '.') return '_'; else - return c; + return ucase (c); }; transform (t.name.begin (), |