diff options
author | Karen Arutyunov <karen@codesynthesis.com> | 2016-06-03 16:43:46 +0300 |
---|---|---|
committer | Karen Arutyunov <karen@codesynthesis.com> | 2016-06-18 15:17:29 +0300 |
commit | b0e481a653b01e4329bccb1d101d56e3e878e960 (patch) | |
tree | bba1a4cae73ec4ece95f408e079a15d664e49927 /build2/config | |
parent | 0d692ec857340a0f16a03d6a7ef38fe864a83cfc (diff) |
Port to MinGW
Diffstat (limited to 'build2/config')
-rw-r--r-- | build2/config/operation.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
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; |