summaryrefslogtreecommitdiff
path: root/lang/rust
diff options
context:
space:
mode:
authorDan McGregor <dan.mcgregor@usask.ca>2024-03-31 14:01:50 +0200
committerMikael Urankar <mikael@FreeBSD.org>2024-05-13 13:03:21 +0200
commit2a1d35b12b4a41e25840e0f240eec81f448b1cfe (patch)
treeed8e7df22ba78dd959d5fc22085a5cb739483a41 /lang/rust
parentarchivers/lzip: Update to 1.24.1 (diff)
lang/rust: remap debuginfo
Prior to this update, when the rust compiler generates warnings or errors that refer to source code for the standard library, its messaging use the build time path, rather than the installed path. It's probably more useful for most users of rust to not have to mentally rename files to find the files in question. PR: 278133 Differential Revision: https://reviews.freebsd.org/D44547
Diffstat (limited to 'lang/rust')
-rw-r--r--lang/rust/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/lang/rust/Makefile b/lang/rust/Makefile
index f7728020d762..f5e569551593 100644
--- a/lang/rust/Makefile
+++ b/lang/rust/Makefile
@@ -184,6 +184,7 @@ do-configure:
.if ${PORT_OPTIONS:MLTO}
@${ECHO_CMD} 'lto="thin"' >> ${WRKSRC}/config.toml
.endif
+ @${ECHO_CMD} 'remap-debuginfo=true' >> ${WRKSRC}/config.toml
@${ECHO_CMD} '[llvm]' >> ${WRKSRC}/config.toml
.if ${PORT_OPTIONS:MLTO}
@${ECHO_CMD} 'thin-lto=true' >> ${WRKSRC}/config.toml