-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rust-ctor firing before rust std ctor? #219
Comments
probably not this library, unless for some reason ctor is like... not waiting for C/C++ runtime of MSVC? i don't know... just a guess. |
A temporary workaround you could try is something like this: #[used]
#[link_section = ".CRT$XCV"]
static INIT_TABLE_ENTRY: unsafe extern "C" fn() = init;
// initialization function.
unsafe extern "C" fn init() {
/* ctor code goes here */
} This uses the |
Thanks for the detailed report. Should we modify the library to use |
I think this should be fixed in the standard library. That said, there shouldn't currently be any particular harm to using
|
Ok, I did a quick write up of the underlying issue on the Rust repository and also made a PR to address it. |
Oh this issue is fixed? Should this then be closed? |
The text was updated successfully, but these errors were encountered: