remove pointless pwd fallbacks
neither qmake_getpwd()'s return value nor a fileFixify()'d version of it can be empty. Change-Id: Ic3b7d20becc57209b9dbe71ad9dc8e7547d435b1 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
2924279c23
commit
cefaf61eda
@ -742,8 +742,6 @@ ProjectBuilderMakefileGenerator::writeMakeParts(QTextStream &t)
|
||||
mkt << "INCPATH = -I" << specdir();
|
||||
if(!project->isActiveConfig("no_include_pwd")) {
|
||||
QString pwd = escapeFilePath(fileFixify(qmake_getpwd()));
|
||||
if(pwd.isEmpty())
|
||||
pwd = ".";
|
||||
mkt << " -I" << pwd;
|
||||
}
|
||||
{
|
||||
|
@ -795,8 +795,6 @@ MakefileGenerator::init()
|
||||
incDirs += v["INCLUDEPATH"];
|
||||
if(!project->isActiveConfig("no_include_pwd")) {
|
||||
QString pwd = qmake_getpwd();
|
||||
if(pwd.isEmpty())
|
||||
pwd = ".";
|
||||
incDirs += pwd;
|
||||
}
|
||||
QList<QMakeLocalFileName> deplist;
|
||||
|
@ -187,8 +187,6 @@ UnixMakefileGenerator::writeMakeParts(QTextStream &t)
|
||||
t << "INCPATH = -I" << specdir();
|
||||
if(!project->isActiveConfig("no_include_pwd")) {
|
||||
QString pwd = escapeFilePath(fileFixify(qmake_getpwd()));
|
||||
if(pwd.isEmpty())
|
||||
pwd = ".";
|
||||
t << " -I" << pwd;
|
||||
}
|
||||
{
|
||||
|
@ -308,8 +308,6 @@ void MingwMakefileGenerator::writeIncPart(QTextStream &t)
|
||||
|
||||
if (!project->isActiveConfig("no_include_pwd")) {
|
||||
QString pwd = escapeFilePath(fileFixify(qmake_getpwd()));
|
||||
if (pwd.isEmpty())
|
||||
pwd = ".";
|
||||
t << "-I" << pwd << " ";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user