Re: [PATCH] kbuild, rust: use -fremap-path-prefix to make paths relative
From: Miguel Ojeda
Date: Tue Mar 11 2025 - 07:25:38 EST
On Tue, Mar 11, 2025 at 12:04 PM Masahiro Yamada <masahiroy@xxxxxxxxxx> wrote:
>
> GCC manual mentions the below about the -fdebug-prefix-map=old=new
>
> "It can also be used to change an absolute path to
> a relative path by using . for new.
> This can give more reproducible builds, which are location
> independent, but may require an extra command to tell GDB
> where to find the source files."
>
> I guess "the extra command" might be a bit annoying.
Ah, so you mean that could be reason for not doing it for the debug
case -- I see, thanks!
Cheers,
Miguel