Skip to content

Commit 73abc78

Browse files
committed
set has_thread_local=true for android
1 parent ac8b118 commit 73abc78

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

Cargo.lock

+2-2
Original file line numberDiff line numberDiff line change
@@ -741,9 +741,9 @@ dependencies = [
741741

742742
[[package]]
743743
name = "compiler_builtins"
744-
version = "0.1.71"
744+
version = "0.1.72"
745745
source = "registry+https://github.com/rust-lang/crates.io-index"
746-
checksum = "163437f05ca8f29d7e9128ea728dedf5eb620e445fbca273641d3a3050305f23"
746+
checksum = "afdbb35d279238cf77f0c9e8d90ad50d6c7bff476ab342baafa29440f0f10bff"
747747
dependencies = [
748748
"cc",
749749
"rustc-std-workspace-core",

compiler/rustc_target/src/spec/android_base.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ pub fn opts() -> TargetOptions {
55
base.os = "android".into();
66
base.dwarf_version = Some(2);
77
base.position_independent_executables = true;
8-
base.has_thread_local = false;
8+
base.has_thread_local = true;
99
// This is for backward compatibility, see https://github.com/rust-lang/rust/issues/49867
1010
// for context. (At that time, there was no `-C force-unwind-tables`, so the only solution
1111
// was to always emit `uwtable`).

library/std/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ panic_unwind = { path = "../panic_unwind", optional = true }
1616
panic_abort = { path = "../panic_abort" }
1717
core = { path = "../core" }
1818
libc = { version = "0.2.116", default-features = false, features = ['rustc-dep-of-std'] }
19-
compiler_builtins = { version = "0.1.71" }
19+
compiler_builtins = { version = "0.1.72" }
2020
profiler_builtins = { path = "../profiler_builtins", optional = true }
2121
unwind = { path = "../unwind" }
2222
hashbrown = { version = "0.12", default-features = false, features = ['rustc-dep-of-std'] }

library/std/src/sys/unix/thread_local_dtor.rs

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
// fallback implementation to use as well.
1414
#[cfg(any(
1515
target_os = "linux",
16+
target_os = "android",
1617
target_os = "fuchsia",
1718
target_os = "redox",
1819
target_os = "emscripten"

0 commit comments

Comments
 (0)