You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: text/3127-trim-paths.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -96,8 +96,8 @@ This flag accepts a comma-separated list of values and may be specified multiple
96
96
-`diagnostics` - apply remappings to printed compiler diagnostics
97
97
-`unsplit-debuginfo` - apply remappings to debug information only when they are written to compiled executables or libraries, but not when they are in split debuginfo files
98
98
-`split-debuginfo` - apply remappings to debug information only when they are written to split debug information files, but not in compiled executables or libraries
99
-
-`split-debuginfo-file` - apply remappings to the paths pointing to split debug information files. Does nothing when these files are not generated.
100
-
-`object` - an alias for `macro,unsplit-debuginfo,split-debuginfo-file`. This ensures all paths in compiled executables or libraries are remapped, but not elsewhere.
99
+
-`split-debuginfo-path` - apply remappings to the paths pointing to split debug information files. Does nothing when these files are not generated.
100
+
-`object` - an alias for `macro,unsplit-debuginfo,split-debuginfo-path`. This ensures all paths in compiled executables or libraries are remapped, but not elsewhere.
101
101
-`all` and `true` - an alias for all of the above, also equivalent to supplying only `--remap-path-prefix` without `--remap-path-scope`.
102
102
103
103
Debug information are written to split files when the separate codegen option `-C split-debuginfo=packed` or `unpacked` (whether by default or explicitly set).
@@ -111,8 +111,8 @@ Debug information are written to split files when the separate codegen option `-
111
111
-`diagnostics` - sanitise paths in printed compiler diagnostics
112
112
-`unsplit-debuginfo` - sanitise paths in debug information in compiled executables or libraries. Does nothing if debug information are in split files
113
113
-`split-debuginfo` - sanitise paths in debug information in split debuginfo files. Does nothing if debug information are in compiled executables or libraries
114
-
-`split-debuginfo-file` - sanitise paths pointing to split debug information files. Does nothing if these files are not generated.
115
-
-`object` - an alias for `macro,unsplit-debuginfo,split-debuginfo-file`. This ensures all paths in compiled executables or libraries are sanitised, but not elsewhere.
114
+
-`split-debuginfo-path` - sanitise paths pointing to split debug information files. Does nothing if these files are not generated.
115
+
-`object` - an alias for `macro,unsplit-debuginfo,split-debuginfo-path`. This ensures all paths in compiled executables or libraries are sanitised, but not elsewhere.
116
116
-`all` and `true` - an alias for all of the above
117
117
118
118
It is defaulted to `none` for debug profiles, and `object` for release profiles. You can manually override it by specifying this option in `Cargo.toml`:
@@ -184,9 +184,9 @@ local path to be remapped in the usual way.
184
184
185
185
When debug information are not embedded in the binary (i.e. `split-debuginfo` is not `off`), absolute paths to various files containing debug
186
186
information are embedded into the binary instead. Such as the absolute path to `.pdb` file (MSVC, `packed`), `.dwo` files (ELF, `unpacked`),
187
-
and `.o` files (ELF, `packed`). This can be undesirable. As such, `split-debuginfo-file` is made specifically for these embedded paths.
187
+
and `.o` files (ELF, `packed`). This can be undesirable. As such, `split-debuginfo-path` is made specifically for these embedded paths.
188
188
189
-
On macOS and ELF platforms, these paths are introduced by `rustc` during codegen. With MSVC, however, the path to `.pdb`fil is generated and
189
+
On macOS and ELF platforms, these paths are introduced by `rustc` during codegen. With MSVC, however, the path to `.pdb`file is generated and
190
190
embedded into the binary by the linker `link.exe`. The linker has a `/PDBALTPATH` option allows us to change the embedded path written to the
0 commit comments