diff options
author | John Hodge <tpg@mutabah.net> | 2017-08-24 13:09:05 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2017-08-24 13:09:05 +0800 |
commit | 8b4e8c85ae64f2f4cff68f4b919e76d4355919bb (patch) | |
tree | a6aed6023930a2426409a5f1400e8a8ad49b91e7 /tools/minicargo/build.cpp | |
parent | 0056ae63757014646da33ce9bcf4d36912d30973 (diff) | |
download | mrust-8b4e8c85ae64f2f4cff68f4b919e76d4355919bb.tar.gz |
minicargo build - Print mrustc command in a copyable format
Diffstat (limited to 'tools/minicargo/build.cpp')
-rw-r--r-- | tools/minicargo/build.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/minicargo/build.cpp b/tools/minicargo/build.cpp index 50f29db3..3cdea3b3 100644 --- a/tools/minicargo/build.cpp +++ b/tools/minicargo/build.cpp @@ -370,7 +370,12 @@ bool Builder::spawn_process(const StringList& args, const ::helpers::path& logfi // Generate `argv` auto argv = args.get_vec(); argv.insert(argv.begin(), "mrustc"); - DEBUG("Calling " << argv); + //DEBUG("Calling " << argv); + Debug_Print([&](auto& os){ + os << "Calling"; + for(const auto& p : argv) + os << " " << p; + }); argv.push_back(nullptr); // Generate `envp` |