[ios] Fix iOS device build.

Change-Id: Ib0f5af9680b4b626df2da006789eb846cd38579d
Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/2081269
Reviewed-by: Mark Mentovai <mark@chromium.org>
Commit-Queue: Justin Cohen <justincohen@chromium.org>
This commit is contained in:
Justin Cohen 2020-03-02 20:34:47 -05:00 committed by Commit Bot
parent 11b8eb10d4
commit 3c573b54ae
2 changed files with 7 additions and 3 deletions

View File

@ -328,7 +328,7 @@ source_set("snapshot_test") {
"sanitized/process_snapshot_sanitized_test.cc",
"sanitized/sanitization_information_test.cc",
]
} else {
} else if (!crashpad_is_ios) {
sources += [ "crashpad_info_client_options_test.cc" ]
}

View File

@ -17,7 +17,9 @@
#include "build/build_config.h"
#if defined(OS_MACOSX)
#if defined(OS_IOS)
#include <sys/ucontext.h>
#elif defined(OS_MACOSX)
#include <mach/mach.h>
#elif defined(OS_WIN)
#include <windows.h>
@ -29,7 +31,9 @@
namespace crashpad {
#if defined(OS_MACOSX)
#if defined(OS_IOS)
using NativeCPUContext = ucontext_t;
#elif defined(OS_MACOSX)
#if defined(ARCH_CPU_X86_FAMILY)
using NativeCPUContext = x86_thread_state;
#endif