Skip to content

add support for mod_init_funcs (was compat: rust-ctor fails to trigger with Cranelift on MacOS, but works with LLVM) #1588

@stewartadam

Description

@stewartadam

I noticed when switching to the cranelift backend that my typetag types stopped working:
dtolnay/typetag#35

I'm not sure what exactly is to blame, but figured it warranted reporting as a compat issue. Through some debugging, I've identified the issue appears to be specific to Cranelift on MacOS, and is caused because rust-ctor crate to fails to trigger #[ctor]-annotated code on module initialization: mmastrac/rust-ctor#339

Other thoughts:

Metadata

Metadata

Assignees

No one assigned

    Labels

    O-macosOperating system: MacOS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions