Skip to content

Rust: Handle different rust_crate_type depending on default_library #11708

Open
@xclaesse

Description

When building a C library from rust code we have to pass rust_crate_type: 'cdylib' or rust_crate_type: 'staticlib' depending if it's a shared_library() or static_library(). But in the case of both_libraries() or library() the value must be different depending on default_library option.

We probably need to add a new value rust_crate_type: 'clib' to mean cdylib if shared library, staticlib if static library.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions