aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build2/config/operation.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/build2/config/operation.cxx b/build2/config/operation.cxx
index ca2d559..90c2bbb 100644
--- a/build2/config/operation.cxx
+++ b/build2/config/operation.cxx
@@ -252,9 +252,18 @@ namespace build2
if (v)
{
storage.clear ();
+ names_view ns (reverse (v, storage));
+
+ ofs << n;
+
+ if (ns.empty ())
+ ofs << " =";
+ else
+ {
+ ofs << " = ";
+ to_stream (ofs, ns, true, '@'); // Quote.
+ }
- ofs << n << " = ";
- to_stream (ofs, reverse (v, storage), true, '@'); // Quote.
ofs << endl;
}
else