Only destroy temp allocators on env::LIBC.

This commit is contained in:
Christoffer Lerno
2024-08-08 12:48:01 +02:00
parent 921422a189
commit 0ef0f62b69

View File

@@ -395,7 +395,7 @@ fn void init_default_temp_allocators() @private
thread_temp_allocator = temp_allocator_pair[0];
}
fn void destroy_temp_allocators_after_exit() @finalizer(65535) @local
fn void destroy_temp_allocators_after_exit() @finalizer(65535) @local @if(env::LIBC)
{
destroy_temp_allocators();
}