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/compile.cxx | |
parent | 5352f2fb6b911c804e70ea98c1bb335c54fea6b5 (diff) |
Add ignore case support for find_option()
Diffstat (limited to 'build2/cxx/compile.cxx')
-rw-r--r-- | build2/cxx/compile.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/build2/cxx/compile.cxx b/build2/cxx/compile.cxx index 2f1eb8d..56c518b 100644 --- a/build2/cxx/compile.cxx +++ b/build2/cxx/compile.cxx @@ -586,12 +586,9 @@ namespace build2 { // See if this one is part of the Windows drive letter. // - auto isalpha = [](char c) { - return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');}; - if (p > 1 && p + 1 < n && // 2 chars before, 1 after. l[p - 2] == ' ' && - isalpha (l[p - 1]) && + alpha (l[p - 1]) && path::traits::is_separator (l[p + 1])) p = l.rfind (':', p - 2); } |