mirror of
https://github.com/chromium/crashpad.git
synced 2025-01-14 01:08:01 +08:00
port: fix non-glibc desktop linux build
This is the only change needed to build crashpad against musl, yay! The reason this change is needed is that user_vfp is bionic-specific, and does not exist in glibc, dietlibc, uclibc, or musl. I have not (yet) tried running the tests against another libc. Bug: chromium:1380656 Change-Id: I2247352e1611a300dff995156d393508c8257039 Reviewed-on: https://chromium-review.googlesource.com/c/crashpad/crashpad/+/4255370 Reviewed-by: Mark Mentovai <mark@chromium.org> Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org>
This commit is contained in:
parent
485805c6fe
commit
04b2ab5bba
@ -15,6 +15,7 @@
|
|||||||
#ifndef CRASHPAD_UTIL_LINUX_THREAD_INFO_H_
|
#ifndef CRASHPAD_UTIL_LINUX_THREAD_INFO_H_
|
||||||
#define CRASHPAD_UTIL_LINUX_THREAD_INFO_H_
|
#define CRASHPAD_UTIL_LINUX_THREAD_INFO_H_
|
||||||
|
|
||||||
|
#include <features.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <sys/user.h>
|
#include <sys/user.h>
|
||||||
|
|
||||||
@ -274,7 +275,7 @@ union FloatContext {
|
|||||||
"Size mismatch");
|
"Size mismatch");
|
||||||
#elif defined(ARCH_CPU_ARMEL)
|
#elif defined(ARCH_CPU_ARMEL)
|
||||||
static_assert(sizeof(f32_t::fpregs) == sizeof(user_fpregs), "Size mismatch");
|
static_assert(sizeof(f32_t::fpregs) == sizeof(user_fpregs), "Size mismatch");
|
||||||
#if !defined(__GLIBC__)
|
#if defined(__BIONIC__)
|
||||||
static_assert(sizeof(f32_t::vfp) == sizeof(user_vfp), "Size mismatch");
|
static_assert(sizeof(f32_t::vfp) == sizeof(user_vfp), "Size mismatch");
|
||||||
#endif
|
#endif
|
||||||
#elif defined(ARCH_CPU_ARM64)
|
#elif defined(ARCH_CPU_ARM64)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user