Fix building with "-sanitize fuzzer-no-link"

This partially reverts commit c25a5b4e1fc9e74f1f3ab1001db4fbae267d7831.

We need qtemporaryfile.cpp in the bootstrap library, because qfile.cpp
uses QTemporaryFileName - even if QTemporaryFile has been disabled.

Re-adding qtemporaryfile.cpp does not increase the bootstrap library's
size significantly, because since c25a5b4e1f we have
     #define QT_NO_TEMPORARYFILE
in qconfig-bootstrapped.h, and that disables compilation of
QTemporaryFile but leaves QTemporaryFileName intact.

Fixes: QTBUG-103805
Change-Id: I6947ca303edb36fc359bd5d07c1cbd88098905fb
Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
(cherry picked from commit c0a5f17679b2803c6a6bf0b01367fd53c9c83a48)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
Robert Loehning 2022-06-03 14:16:05 +02:00 committed by Qt Cherry-pick Bot
parent e51a6755a7
commit bde89d8cb0

View File

@ -37,6 +37,7 @@ qt_internal_extend_target(Bootstrap
../../corelib/io/qresource.cpp
../../corelib/io/qsavefile.cpp
../../corelib/io/qstandardpaths.cpp
../../corelib/io/qtemporaryfile.cpp
../../corelib/kernel/qcoreapplication.cpp
../../corelib/kernel/qcoreglobaldata.cpp
../../corelib/kernel/qiterable.cpp