Commit 086da35c authored by Victor Yacovlev's avatar Victor Yacovlev

Debugging information for win32

parent c0101f20
......@@ -370,6 +370,7 @@ QByteArray LLVMCodeGeneratorPlugin::runExternalToolsToGenerateExecutable(const Q
const QString exeFileName = bcFileName.left(bcFileName.length()-2) + "exe";
QString errorMessage;
QByteArray output;
QProcess process;
// ====== Compile bitcode to machine code using LLVM llc
......@@ -392,8 +393,9 @@ QByteArray LLVMCodeGeneratorPlugin::runExternalToolsToGenerateExecutable(const Q
;
}
else {
qDebug() << process.readAllStandardOutput();
qDebug() << process.readAllStandardError();
output = process.readAllStandardOutput() + "\n" +
process.readAllStandardError();
qDebug() << output;
const int status = process.exitStatus();
if (0 != status) {
errorMessage = QString("== ERROR == %1 %2 exited with status: %3")
......@@ -429,8 +431,9 @@ QByteArray LLVMCodeGeneratorPlugin::runExternalToolsToGenerateExecutable(const Q
;
}
else {
qDebug() << process.readAllStandardOutput();
qDebug() << process.readAllStandardError();
output = process.readAllStandardOutput() + "\n" +
process.readAllStandardError();
qDebug() << output;
const int status = process.exitStatus();
if (0 != status) {
errorMessage = QString("== ERROR == %1 %2 exited with status: %3")
......@@ -481,8 +484,9 @@ QByteArray LLVMCodeGeneratorPlugin::runExternalToolsToGenerateExecutable(const Q
;
}
else {
qDebug() << process.readAllStandardOutput();
qDebug() << process.readAllStandardError();
output = process.readAllStandardOutput() + "\n" +
process.readAllStandardError();
qDebug() << output;
const int status = process.exitStatus();
if (0 != status) {
errorMessage = QString("== ERROR == %1 %2 exited with status: %3")
......
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