diff options
author | Joerg Bornemann <joerg.bornemann@digia.com> | 2013-05-13 17:05:50 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2013-05-22 11:54:08 +0200 |
commit | de8d91260f46e74e828869090a6a4f824b5e6034 (patch) | |
tree | 2cb91138f9efb4ea8479108197c94c8e9c21086a | |
parent | 6263d8c84426879b3a899ca0b219541bb8d4e2df (diff) |
fix default value of ProcessCommand::m_responseFileThreshold
On Windows it should be around 32000 and everywhere else negative.
A value of 0 means to always use a response file regardless how
long the command line is.
Change-Id: I7c90bb536ca9cb9f5b41fe5dbdb50b27d7057136
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
-rw-r--r-- | src/lib/buildgraph/command.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/buildgraph/command.cpp b/src/lib/buildgraph/command.cpp index c1e28319a..83b4e6a38 100644 --- a/src/lib/buildgraph/command.cpp +++ b/src/lib/buildgraph/command.cpp @@ -29,6 +29,7 @@ #include "command.h" #include <tools/qbsassert.h> +#include <tools/hostosinfo.h> #include <QScriptEngine> #include <QScriptValueIterator> @@ -131,8 +132,8 @@ void ProcessCommand::setupForJavaScript(QScriptValue targetObject) } ProcessCommand::ProcessCommand() - : m_maxExitCode(0), - m_responseFileThreshold(32000) + : m_maxExitCode(0) + , m_responseFileThreshold(HostOsInfo::isWindowsHost() ? 32000 : -1) { } |