diff options
| author | Dylan DPC <99973273+Dylan-DPC@users.noreply.github.com> | 2022-04-29 23:54:43 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-04-29 23:54:43 +0200 |
| commit | 548fca6927a644b4cde66893f5db6f4aff3f8f33 (patch) | |
| tree | e8ccf5035b4e28eb52e7f8c09bb31b958c0f9338 /compiler/rustc_codegen_gcc | |
| parent | 2986bef53473d9c0692d3130d8289e234db0b2ea (diff) | |
| parent | 3614bd3c45a8d0e5f27c0736e8966f6456a5cd75 (diff) | |
| download | rust-548fca6927a644b4cde66893f5db6f4aff3f8f33.tar.gz rust-548fca6927a644b4cde66893f5db6f4aff3f8f33.zip | |
Rollup merge of #96562 - michaelwoerister:path-remapping-fixes, r=oli-obk
Fix duplicate directory separator in --remap-path-prefix.
The compiler will currently emit duplicate directory separators when `--remap-path-prefix` has an exact match of the working directory and it is invoked with a relative path to the main source file. For example
```bash
rustc src/main.rs -Cdebuginfo=2 --remap-path-prefix="$(pwd)=abc"
```
will produce the path `abc//src/main.rs` in debuginfo. This is because `some_path.join("")` will append a directory separator to `some_path` and then LLVM does not check if the working directory already ends a directory separator before concatenating it with the relative path.
Diffstat (limited to 'compiler/rustc_codegen_gcc')
0 files changed, 0 insertions, 0 deletions
