Skip to content

LTO does not work due to default rlib target, causing extremely large static build artifacts #322

@sd-collins

Description

@sd-collins

In order to fix #138, CrateType::Lib is always selected when building (see here). Unfortunately, this means LTO configuration is ignored (see this cargo issue), meaning our gstreamer plugins are ridiculously large, especially for static builds (hundreds of megabytes when they should be less than ten).

Reverting 596c582 does fix it, however this would probably break #138.

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