Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions buildtools/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -1974,7 +1974,6 @@ source_set("libunwindstack") {
]
if (!is_android) {
sources += [
"android-libbase/liblog_symbols.cpp",
"android-libbase/logging.cpp",
"android-libbase/threads.cpp",
"android-logging/liblog/logger_write.cpp",
Expand All @@ -1994,7 +1993,17 @@ source_set("libunwindstack") {
"//gn/standalone:extra_warnings",
"//gn/standalone:visibility_hidden",
]
cflags = [ "-DFAKE_LOG_DEVICE=1" ]
cflags = [
"-DFAKE_LOG_DEVICE=1",

# android-unwinding/libunwindstack/Memory.cpp uses the macro
# TEMP_FAILURE_RETRY which is only defined in bionic and glibc.
# To fix the musl build, force include libbase's polyfill header.
# Android's musl build succeeds because of a separate polyfill:
# https://cs.android.com/android/platform/superproject/+/android-latest-release:external/musl/android/include/unistd.h;bpv=1
"-include",
"android-base/macros.h",
]
if (!is_win) {
cflags += [
"-Wno-deprecated-declarations",
Expand Down
4 changes: 2 additions & 2 deletions tools/install-build-deps
Original file line number Diff line number Diff line change
Expand Up @@ -282,10 +282,10 @@ BUILD_DEPS_HOST = [
'4b59ea8471e89d01300481a92de3230b79b6d7c7', 'all', 'all'),
Dependency('buildtools/android-logging',
'https://android.googlesource.com/platform/system/logging.git',
'7b36b566c9113fc703d68f76e8f40c0c2432481c', 'all', 'all'),
'da4d6df49d1d6c971be508dcde18e8b00bb74581', 'all', 'all'),
Dependency('buildtools/android-libbase',
'https://android.googlesource.com/platform/system/libbase.git',
'78f1c2f83e625bdf66d55b48bdb3a301c20d2fb3', 'all', 'all'),
'18c2bd4f3607cb300bb96e543df91dfdda6a9655', 'all', 'all'),
Dependency(
'buildtools/android-libprocinfo',
'https://android.googlesource.com/platform/system/libprocinfo.git',
Expand Down
Loading