Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2024 11:03:50 GMT
From:      Mikael Urankar <mikael@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 2a1d35b12b4a - main - lang/rust: remap debuginfo
Message-ID:  <202405131103.44DB3o2I060641@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mikael:

URL: https://cgit.FreeBSD.org/ports/commit/?id=2a1d35b12b4a41e25840e0f240eec81f448b1cfe

commit 2a1d35b12b4a41e25840e0f240eec81f448b1cfe
Author:     Dan McGregor <dan.mcgregor@usask.ca>
AuthorDate: 2024-03-31 12:01:50 +0000
Commit:     Mikael Urankar <mikael@FreeBSD.org>
CommitDate: 2024-05-13 11:03:21 +0000

    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
---
 lang/rust/Makefile | 1 +
 1 file changed, 1 insertion(+)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202405131103.44DB3o2I060641>