Skip to content

Commit a1bf052

Browse files
committed
Implement get_current_tid_inner for Android
1 parent 5764291 commit a1bf052

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ jobs:
119119
fail-fast: false
120120
matrix:
121121
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
122-
target: ['', 'x86_64-apple-ios', 'x86_64-unknown-freebsd', 'x86_64-unknown-illumos']
122+
target: ['', 'x86_64-apple-ios', 'x86_64-unknown-freebsd', 'x86_64-unknown-illumos', 'aarch64-linux-android']
123123
runs-on: ${{ matrix.os }}
124124
steps:
125125
- name: Checkout repository

spdlog/src/record.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ impl RecordOwned {
214214
}
215215

216216
fn get_current_tid() -> u64 {
217-
#[cfg(target_os = "linux")]
217+
#[cfg(any(target_os = "linux", target_os = "android"))]
218218
#[must_use]
219219
fn get_current_tid_inner() -> u64 {
220220
// https://github.com/SpriteOvO/spdlog-rs/issues/31

0 commit comments

Comments
 (0)