Skip to content

Support building crate dependencies at different optimization levels #4719

@jrmuizel

Description

@jrmuizel

This is pretty commonly requested functionality, with a variety of use cases:

  1. Building all dependent crates with optimization except for one that's being debugged. This is valuable for situations where running builds with everything built at -opt-level=0 is too slow to be usable but you still need good debug info for part of the application.
  2. You can't afford to do opt-level=3 builds because of the long build time but certain crates need opt-level=3 for good codegen. This is directly affecting Gecko and WebRender. Gecko builds its rust code with opt-level=2 but we need to build the serialization code at opt-level=3. See
    https://bugzilla.mozilla.org/show_bug.cgi?id=1413285

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-configurationArea: cargo config files and env vars

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions