forked from qt-creator/qt-creator
unbreak $$system() in bootstrapped mode
Change-Id: I43eb4a7a94b6df3d964b7bfd1747f953f436ba10 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -352,7 +352,7 @@ QByteArray QMakeEvaluator::getCommandOutput(const QString &args) const
|
|||||||
QByteArray out;
|
QByteArray out;
|
||||||
if (FILE *proc = QT_POPEN(QString(QLatin1String("cd ")
|
if (FILE *proc = QT_POPEN(QString(QLatin1String("cd ")
|
||||||
+ IoUtils::shellQuote(currentDirectory())
|
+ IoUtils::shellQuote(currentDirectory())
|
||||||
+ QLatin1String(" && ") + args[0]).toLocal8Bit().constData(), "r")) {
|
+ QLatin1String(" && ") + args).toLocal8Bit().constData(), "r")) {
|
||||||
while (!feof(proc)) {
|
while (!feof(proc)) {
|
||||||
char buff[10 * 1024];
|
char buff[10 * 1024];
|
||||||
int read_in = int(fread(buff, 1, sizeof(buff), proc));
|
int read_in = int(fread(buff, 1, sizeof(buff), proc));
|
||||||
|
Reference in New Issue
Block a user