diff options
-rw-r--r-- | build2/cc/common.cxx | 3 |
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; |