Skip to content

Linking dylib to rlib doesn't emit error, although reversed one does #11240

@klutzy

Description

@klutzy

a.rs:

#[crate_type = "dylib"];

b.rs:

#[crate_type = "rlib"];
extern mod a;

Then liba-ca3f740d-0.0.so and libb-920859ee-0.0.rlib are built successfully.

The reversed case causes error as expected:

error: could not find dynamic library for: `a`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions