summary refs log tree commit diff
path: root/src/doc/man
diff options
context:
space:
mode:
authorJeremy Fitzhardinge <jeremy@goop.org>2018-02-18 15:05:24 -0800
committerJeremy Fitzhardinge <jsgf@fb.com>2018-02-22 15:13:21 -0800
commit56a68285332000c858e9aeba7d66a4ec66ebff91 (patch)
tree2eefbd5dddbb4458f91f1ca2eddb9eccb6850928 /src/doc/man
parentb1f8e6fb06d7362eeb2065347a7db94e76b1cb2f (diff)
downloadrust-56a68285332000c858e9aeba7d66a4ec66ebff91.tar.gz
rust-56a68285332000c858e9aeba7d66a4ec66ebff91.zip
Implement --remap-path-prefix
Remove experimental -Zremap-path-prefix-from/to, and replace it with
the stabilized --remap-path-prefix=from=to variant.

This is an implementation for issue of #41555.
Diffstat (limited to 'src/doc/man')
-rw-r--r--src/doc/man/rustc.110
1 files changed, 10 insertions, 0 deletions
diff --git a/src/doc/man/rustc.1 b/src/doc/man/rustc.1
index 19f6cc9ac61..39d10539959 100644
--- a/src/doc/man/rustc.1
+++ b/src/doc/man/rustc.1
@@ -125,6 +125,16 @@ Print version info and exit.
 \fB\-v\fR, \fB\-\-verbose\fR
 Use verbose output.
 .TP
+\fB\-\-remap\-path\-prefix\fR \fIfrom\fR=\fIto\fR
+Remap source path prefixes in all output, including compiler diagnostics, debug information,
+macro expansions, etc. The \fIfrom\fR=\fIto\fR parameter is scanned from right to left, so \fIfrom\fR
+may contain '=', but \fIto\fR may not.
+
+This is useful for normalizing build products, for example by removing the current directory out of
+pathnames emitted into the object files. The replacement is purely textual, with no consideration of
+the current system's pathname syntax. For example \fI\-\-remap\-path\-prefix foo=bar\fR will
+match \fBfoo/lib.rs\fR but not \fB./foo/lib.rs\fR.
+.TP
 \fB\-\-extern\fR \fINAME\fR=\fIPATH\fR
 Specify where an external rust library is located. These should match
 \fIextern\fR declarations in the crate's source code.