Commit d20d6c08 authored by Christian Kandeler's avatar Christian Kandeler
Browse files

QbsProjectManager: Display compiler arguments quoted, if necessary.



On compile errors, file names with e.g. spaces are currently displayed
unquoted, which makes it very inconvenient to copy-paste the compiler
command line displayed in Creator to a shell for closer examination,
editing etc.

Change-Id: I935d8f0b5fa14c7a6f641dcfae659173882194b1
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@digia.com>
parent fec00e29
......@@ -293,7 +293,8 @@ void QbsBuildStep::handleProcessResultReport(const qbs::ProcessResult &result)
m_parser->setWorkingDirectory(result.workingDirectory());
QString commandline = result.executableFilePath() + QLatin1Char(' ') + result.arguments().join(QLatin1String(" "));
QString commandline = result.executableFilePath() + QLatin1Char(' ')
+ Utils::QtcProcess::joinArgs(result.arguments());
addOutput(commandline, NormalOutput);
foreach (const QString &line, result.stdErr()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment