forked from qt-creator/qt-creator
Fix build on macOS for older Xcode
Amends 05430afdcf
.
Change-Id: I3e0017ecdd3656a7a777819a2bce269dd211ee5e
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -385,7 +385,7 @@ bool GenericBuildSystem::renameFiles(Node *, const FilePairs &filesToRename, Fil
|
||||
|
||||
bool success = true;
|
||||
for (const auto &[oldFilePath, newFilePath] : filesToRename) {
|
||||
const auto fail = [&] {
|
||||
const auto fail = [&, oldFilePath = oldFilePath] {
|
||||
success = false;
|
||||
if (notRenamed)
|
||||
*notRenamed << oldFilePath;
|
||||
|
@@ -636,7 +636,7 @@ bool QmlBuildSystem::renameFiles(Node *context,
|
||||
|
||||
bool success = true;
|
||||
for (const auto &[oldFilePath, newFilePath] : filesToRename) {
|
||||
const auto fail = [&] {
|
||||
const auto fail = [&, oldFilePath = oldFilePath] {
|
||||
success = false;
|
||||
if (notRenamed)
|
||||
*notRenamed << oldFilePath;
|
||||
|
Reference in New Issue
Block a user