Frontend:
* Redirect stdout/stderr from engine to frontend in dev builds (easier debugging)
CMake:
* Reenabled FPC warnings/notes (forced)
--- a/CMakeLists.txt Mon Mar 29 13:58:21 2010 +0000
+++ b/CMakeLists.txt Mon Mar 29 16:39:08 2010 +0000
@@ -133,7 +133,7 @@
set(pascal_compiler_flags_cmn "-O2" "-Xs" "-Si" ${pascal_compiler_flags_cmn})
set(haskell_compiler_flags_cmn "-O2" "-w")
else(Optz)
- set(pascal_compiler_flags_cmn "-O-" "-glh" "-dDEBUGFILE" "-vv" ${pascal_compiler_flags_cmn})
+ set(pascal_compiler_flags_cmn "-O-" "-glhtv" "-dDEBUGFILE" "-vwnv" ${pascal_compiler_flags_cmn})
set(haskell_compiler_flags_cmn "-Wall" "-debug" "-dcore-lint")
endif(Optz)
--- a/QTfrontend/tcpBase.cpp Mon Mar 29 13:58:21 2010 +0000
+++ b/QTfrontend/tcpBase.cpp Mon Mar 29 16:39:08 2010 +0000
@@ -72,6 +72,10 @@
process = new QProcess;
connect(process, SIGNAL(error(QProcess::ProcessError)), this, SLOT(StartProcessError(QProcess::ProcessError)));
QStringList arguments=setArguments();
+
+ // redirect everything written on stdout/stderr
+ if(isDevBuild)
+ process->setProcessChannelMode(QProcess::ForwardedChannels);
process->start(bindir->absolutePath() + "/hwengine", arguments);
}