Skip to content

Commit 22a2217

Browse files
committed
fix thread locals
1 parent a4dbce2 commit 22a2217

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

library/std/src/sys/pal/vexos/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ pub unsafe extern "C" fn _start() -> ! {
5555

5656
main();
5757

58+
unsafe {
59+
crate::sys::thread_local::destructors::run();
60+
}
61+
crate::rt::thread_cleanup();
62+
5863
abort_internal()
5964
}
6065

library/std/src/sys/thread_local/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ pub(crate) mod guard {
9090
target_family = "wasm",
9191
target_os = "uefi",
9292
target_os = "zkvm",
93+
target_os = "vexos",
9394
))] {
9495
pub(crate) fn enable() {
9596
// FIXME: Right now there is no concept of "thread exit" on

0 commit comments

Comments
 (0)