Skip to content

FR: Support flagfile in rustc (@file syntax) #51473

Closed
@damienmg

Description

@damienmg

Hello,

In the process of thinking how to better integrate Bazel & RLS (bazelbuild/rules_rust#95) I found out that rustc doesn't support flag file, that is file that contains a list of arguments that is to be parsed by the compiler. Because the way Bazel works, it has crates that can live in various place in the system. It creates symlink at the moment to put everything in one directory but that is not required except that the number of -L flags will ends up being large without it.

It's a very common way of passing options in standard compilers (gcc, clang, javac).

Related RFC: rust-lang/rfcs#2136 (build system integration)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: A feature request, i.e: not implemented / a PR.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions