Check in arch detection for qmake failures
QMake can fail at arch detection, so remove the silence here and fail when qmake does not produce any Makefile. Change-Id: I8826867952665a68f7205acf99ee6f1c9ead8513 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
parent
7ba31ff5a4
commit
13fe38ebb9
@ -2778,11 +2778,17 @@ void Configure::detectArch()
|
||||
QString subarchKey = data.subarchKey;
|
||||
|
||||
// run qmake
|
||||
QString command = QString("%1 -spec %2 %3 2>&1")
|
||||
QString command = QString("%1 -spec %2 %3")
|
||||
.arg(QDir::toNativeSeparators(buildPath + "/bin/qmake.exe"),
|
||||
QDir::toNativeSeparators(qmakespec),
|
||||
QDir::toNativeSeparators(sourcePath + "/config.tests/arch/arch.pro"));
|
||||
Environment::execute(command);
|
||||
int returnValue = 0;
|
||||
Environment::execute(command, &returnValue);
|
||||
if (returnValue != 0) {
|
||||
cout << "QMake failed!" << endl;
|
||||
dictionary["DONE"] = "error";
|
||||
return;
|
||||
}
|
||||
|
||||
// compile
|
||||
command = dictionary[ "MAKE" ];
|
||||
|
Loading…
Reference in New Issue
Block a user