aboutsummaryrefslogtreecommitdiff
path: root/build2/cc/common.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cc/common.cxx')
-rw-r--r--build2/cc/common.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/build2/cc/common.cxx b/build2/cc/common.cxx
index 6f51662..5dc61b6 100644
--- a/build2/cc/common.cxx
+++ b/build2/cc/common.cxx
@@ -905,8 +905,8 @@ namespace build2
// /LIBPATH:<dir> (case-insensitive).
//
if ((o[0] == '/' || o[0] == '-') &&
- casecmp (i->c_str () + 1, "LIBPATH:", 8) == 0)
- d = dir_path (*i, 9, string::npos);
+ casecmp (o.c_str () + 1, "LIBPATH:", 8) == 0)
+ d = dir_path (o, 9, string::npos);
else
continue;
}
@@ -914,15 +914,15 @@ namespace build2
{
// -L can either be in the "-L<dir>" or "-L <dir>" form.
//
- if (*i == "-L")
+ if (o == "-L")
{
if (++i == e)
break; // Let the compiler complain.
d = dir_path (*i);
}
- else if (i->compare (0, 2, "-L") == 0)
- d = dir_path (*i, 2, string::npos);
+ else if (o.compare (0, 2, "-L") == 0)
+ d = dir_path (o, 2, string::npos);
else
continue;
}