mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-27 15:32:10 +08:00
[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:
parent
11b8eb10d4
commit
3c573b54ae
@ -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" ]
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user