Skip to content

ctor fails to trigger on MacOS with Cranelift codegen backend #339

@stewartadam

Description

@stewartadam

On MacOS 15.5 with the cranelift codegen backend from rustc 1.90.0-nightly (a84ab0ce6 2025-07-06), #[ctor] does not trigger on module initialization. It seems to be limited to MacOS, I also tested on Linux with cranelift and it worked fine.

See also: dtolnay/typetag#35 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions