Skip to content

Figure out why profile override causes linker errors. #32

Closed
@ehuss

Description

@ehuss

The following override causes a linker error:

[profile.dev.overrides.std]
opt-level = 2

Whereas an override like [profile.dev.overrides."*"] works fine. Here is a gist of the error: https://gist.github.com/ehuss/6973e2fad5663f10592f71de08b3eff0

I haven't investigated much, but this seems like a worrisome problem. Perhaps there is a simple explanation, but it may make profile overrides much more difficult to use, and we may want to make it easier if there is some workaround.

Maybe it has something to do with monomorphization of std code happens in the caller, or module re-exports?

Metadata

Metadata

Assignees

No one assigned

    Labels

    implementationImplementation exploration and tracking issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions