From 1b0efce7791d4d61aa57038edb30fb823ed48e21 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 7 May 2019 15:01:26 +0200 Subject: Work around issues in old compilers --- build2/cc/compile-rule.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'build2/cc/compile-rule.cxx') diff --git a/build2/cc/compile-rule.cxx b/build2/cc/compile-rule.cxx index 9c8e376..96e2dc5 100644 --- a/build2/cc/compile-rule.cxx +++ b/build2/cc/compile-rule.cxx @@ -74,16 +74,16 @@ namespace build2 s += (ut == unit_type::module_impl ? '+' : '!'); } - for (const module_import& mi: mi.imports) + for (const module_import& i: mi.imports) { if (!s.empty ()) s += ' '; - if (mi.type == unit_type::module_header) s += '"'; - s += mi.name; - if (mi.type == unit_type::module_header) s += '"'; + if (i.type == unit_type::module_header) s += '"'; + s += i.name; + if (i.type == unit_type::module_header) s += '"'; - if (mi.exported) + if (i.exported) s += '*'; } -- cgit v1.1