From 3ea3af42d3ea0a61dfb2688a4466318ce5649afa Mon Sep 17 00:00:00 2001 From: Leonard Grey Date: Tue, 2 May 2023 16:05:18 -0400 Subject: [PATCH] Include iOS in availability checks for mach-o/util.h calls Bug: chromium:1420654 Change-Id: Id0281089962147040b6332223bf4593bf4fc60cd Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/4500259 Reviewed-by: Mark Mentovai --- src/common/mac/arch_utilities.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/mac/arch_utilities.cc b/src/common/mac/arch_utilities.cc index 15504b05..96340d54 100644 --- a/src/common/mac/arch_utilities.cc +++ b/src/common/mac/arch_utilities.cc @@ -95,7 +95,7 @@ ArchInfo GetLocalArchInfo(void) { #ifdef __APPLE__ std::optional GetArchInfoFromName(const char* arch_name) { - if (__builtin_available(macOS 13.0, *)) { + if (__builtin_available(macOS 13.0, iOS 16.0, *)) { cpu_type_t type; cpu_subtype_t subtype; if (macho_cpu_type_for_arch_name(arch_name, &type, &subtype)) { @@ -114,7 +114,7 @@ std::optional GetArchInfoFromName(const char* arch_name) { } const char* GetNameFromCPUType(cpu_type_t cpu_type, cpu_subtype_t cpu_subtype) { - if (__builtin_available(macOS 13.0, *)) { + if (__builtin_available(macOS 13.0, iOS 16.0, *)) { const char* name = macho_arch_name_for_cpu_type(cpu_type, cpu_subtype); if (name) { return name;