Skip to content

Warning when specifying the output name with cargo rustc #9558

Open
@kamulos

Description

@kamulos

Problem
When using the -o option with cargo rustc I get a warning. I do not know what I have should do to fix the warning or if there is a better way to achieve what I am doing.

This is the warning:

warning: due to multiple output types requested, the explicitly specified output file name will be adapted for each output type
warning: ignoring --out-dir flag due to -o flag

Steps

cargo rustc -- -o myoutput

Notes

Output of cargo version:

cargo 1.52.0 (69767412a 2021-04-21)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugCommand-rustcS-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions