mirror of
https://github.com/chromium/crashpad.git
synced 2025-01-01 19:05:20 +08:00
e956a8252f
With this change, it is possible to build crashpad_util for Android with clang. I built with NDK 13b (clang 3.8) at API 24 (current), API 21 (used by Chrome in 64-bit builds), and API 16 (used by Chrome in 32-bit builds). - In WeakFileHandleFileWriter::WriteIoVec(): Android does not expose the IOV_MAX macro, but its value can be obtained by calling sysconf(_SC_IOV_MAX). - In CloseMultipleNowOrOnExec(): API 21 removes getdtablesize(). Skip it, because it returned the same thing as sysconf(_SC_OPEN_MAX), which is already consulted. - Throughout: Various #ifdefs checking for OS_LINUX have been extended to also check for OS_ANDROID. In Chrome’s build_config.h (and thus mini_chromium’s), OS_LINUX is not defined when OS_ANDROID is. This has not been tested beyond building the crashpad_util target. BUG=crashpad:30 Change-Id: Ieb0bed736029d2d776c534e30e534f186e6fb663 Reviewed-on: https://chromium-review.googlesource.com/405267 Reviewed-by: Robert Sesek <rsesek@chromium.org>