Skip to content

Rustflag unification seems to be broken in certain situations #290

@weiznich

Description

@weiznich

I observe different outputs for diesels compile tests depending on whether I have the following ~/.cargo/config.toml file:

[target.]
linker = "clang"
rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"]

If the file exists it seems like trybuild does not pass the --verbose flag to the compiler, if it doesn't exist it will pass that flag, which results in widely different output.

That's with trybuild 1.0.100 and rust 1.82.0 using the x86_64-unknown-linux-gnu target

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