aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-28 15:46:28 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-28 15:46:28 +0200
commit9d15cd5ee33d30fbe4a21b062bc79e808d61dc05 (patch)
tree6df47c1aae10603facbe22eeece6f99c928d2766
parent214bc8317696f31d7a121d41e5484d91b0959444 (diff)
Fix remaining case-insensitive compare
-rw-r--r--build2/cc/common.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/build2/cc/common.cxx b/build2/cc/common.cxx
index e0db91e..41e34da 100644
--- a/build2/cc/common.cxx
+++ b/build2/cc/common.cxx
@@ -800,8 +800,7 @@ namespace build2
// /LIBPATH:<dir> (case-insensitive).
//
if ((o[0] == '/' || o[0] == '-') &&
- (i->compare (1, 8, "LIBPATH:") == 0 ||
- i->compare (1, 8, "libpath:") == 0))
+ casecmp (i->c_str () + 1, "LIBPATH:", 8) == 0)
d = dir_path (*i, 9, string::npos);
else
continue;