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 6.6 6.7
Change-Id: I7940ec090b570ec0105196a881e4c73c279bd248
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Joerg Bornemann 2023-12-12 16:07:33 +01:00
parent 0d15758280
commit 7cc55822fb

View File

@ -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;