From b0e481a653b01e4329bccb1d101d56e3e878e960 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 3 Jun 2016 16:43:46 +0300 Subject: Port to MinGW --- build2/config/operation.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'build2/config') diff --git a/build2/config/operation.cxx b/build2/config/operation.cxx index fe36034..20425ea 100644 --- a/build2/config/operation.cxx +++ b/build2/config/operation.cxx @@ -56,7 +56,9 @@ namespace build2 ofs << "# Created automatically by the config module." << endl << "#" << endl - << "src_root = " << src_root << endl; + << "src_root = "; + to_stream (ofs, name (src_root), true, '@'); // Quote. + ofs << endl; } catch (const ofstream::failure&) { @@ -251,7 +253,10 @@ namespace build2 if (v) { storage.clear (); - ofs << n << " = " << reverse (v, storage) << endl; + + ofs << n << " = "; + to_stream (ofs, reverse (v, storage), true, '@'); // Quote. + ofs << endl; } else ofs << n << " = [null]" << endl; -- cgit v1.1