lldb-14: fix build with macOS ≥ 14 SDK (Xcode ≥ 15)

This is a cherry-pick of
https://github.com/llvm/llvm-project/commit/73e15b5edb4fa4a77e68c299a6e3b21e610d351f.

This enables lldb-14 to be built by Xcode ≥ 15, making it possible to
build on macOS ≥ 14, and macOS 13 with Xcode 15.

References: https://trac.macports.org/ticket/70779
This commit is contained in:
Mark Mentovai
2024-09-25 10:51:19 -04:00
parent fc45ac0537
commit 2605e66ff7
2 changed files with 27 additions and 0 deletions
+1
View File
@@ -136,6 +136,7 @@ patchfiles-append \
0015-Fixup-libstdc-header-search-paths-for-older-versions.patch \
0019-10.6-and-less-use-emulated-TLS-before-10.7.patch \
0025-lldb-add-defines-needed-for-older-SDKs.patch \
0032-lldb-Add-cstdio-include-to-fix-a595b931f1f91897317a4.patch \
MachOWriter.cpp-types.patch \
SyntheticSections.cpp-types.patch \
patch-lldb-stdc-macros-134877.diff \
@@ -0,0 +1,26 @@
From 73e15b5edb4fa4a77e68c299a6e3b21e610d351f Mon Sep 17 00:00:00 2001
From: Dmitry Chernenkov <dmitryc@google.com>
Date: Tue, 2 May 2023 12:45:28 +0000
Subject: [PATCH] [lldb] Add cstdio include to fix
a595b931f1f91897317a4257df313bddfeb029a6
---
lldb/include/lldb/API/SBFile.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lldb/include/lldb/API/SBFile.h b/lldb/include/lldb/API/SBFile.h
index d8b348b25c81..ebdc5607b794 100644
--- a/lldb/include/lldb/API/SBFile.h
+++ b/lldb/include/lldb/API/SBFile.h
@@ -11,6 +11,8 @@
#include "lldb/API/SBDefines.h"
+#include <cstdio>
+
namespace lldb {
class LLDB_API SBFile {
--
2.46.1