Skip to content

Handle lib paths with spaces in compiler/rustc_llvm/build.rs #152707

@ChrisDenton

Description

@ChrisDenton

In compiler/rustc_llvm/build.rs llvm-config is called to get a list of lib paths. By default this outputs paths separated by spaces, meaning that if the paths themselves contain spaces then the output will be messed up.

Fixing this requires using the --quote-paths option and handling quotes. However, we would then also need to handle \ escaping.

Alternatively we could just say this is a limitation when building llvm. But then we should at least document this somewhere.

Metadata

Metadata

Assignees

Labels

A-technical-debtArea: Internal cleanup workC-bugCategory: This is a bug.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions