Closed
Description
I am trying to link to
extern __thread int errno;
I try it with:
extern "C" {
#[thread_local]
#[link_name = "errno"]
static errno: c_int;
}
But it seem that it omits the thread_local
part. Any ideas how to get it to work? The linker tells me that I have both thread-local and non-thread local references to errno
defined, so above links to the non-thread local.
Metadata
Metadata
Assignees
Labels
No labels