Remove build machine path that was baked into the qmake binary
Remove the __FILE__ preprocessor macro that contains the full path to the current source file. This is needed for reproducible builds. The macro was only used for two debug messages. It's enough to mention the file name - if at all. Fixes: QTBUG-96281 Pick-to: 6.5 Change-Id: I7940ec090b570ec0105196a881e4c73c279bd248 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> (cherry picked from commit 7cc55822fb94dcbba4e686664ebfca233513b20e) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> (cherry picked from commit cce1222cc0ff92875a6034ef128383ed7f9dabcc)
This commit is contained in:
parent
20b5a25eaa
commit
f2d7272df7
@ -294,8 +294,8 @@ MakefileGenerator::findFilesInVPATH(ProStringList l, uchar flags, const QString
|
||||
QStringList files = QDir(real_dir).entryList(QStringList(regex),
|
||||
QDir::NoDotAndDotDot | QDir::AllEntries);
|
||||
if(files.isEmpty()) {
|
||||
debug_msg(1, "%s:%d Failure to find %s in vpath (%s)",
|
||||
__FILE__, __LINE__, val.toLatin1().constData(),
|
||||
debug_msg(1, "makefile.cpp:%d Failure to find %s in vpath (%s)",
|
||||
__LINE__, val.toLatin1().constData(),
|
||||
vpath.join(QString("::")).toLatin1().constData());
|
||||
if (flags & VPATH_RemoveMissingFiles)
|
||||
remove_file = true;
|
||||
@ -312,8 +312,8 @@ MakefileGenerator::findFilesInVPATH(ProStringList l, uchar flags, const QString
|
||||
}
|
||||
}
|
||||
} else {
|
||||
debug_msg(1, "%s:%d Cannot match %s%s, as %s does not exist.",
|
||||
__FILE__, __LINE__, real_dir.toLatin1().constData(),
|
||||
debug_msg(1, "makefile.cpp:%d Cannot match %s%s, as %s does not exist.",
|
||||
__LINE__, real_dir.toLatin1().constData(),
|
||||
regex.toLatin1().constData(), real_dir.toLatin1().constData());
|
||||
if (flags & VPATH_RemoveMissingFiles)
|
||||
remove_file = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user