From 9d15cd5ee33d30fbe4a21b062bc79e808d61dc05 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Sun, 28 Aug 2016 15:46:28 +0200 Subject: Fix remaining case-insensitive compare --- build2/cc/common.cxx | 3 +-- 1 file changed, 1 insertion(+), 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: (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; -- cgit v1.1