[PATCH v2] Propagate -ffile-prefix-map from CFLAGS to ASFLAGS.
Khem Raj
raj.khem@gmail.com
Tue May 6 20:01:49 GMT 2025
On Tue, May 6, 2025 at 10:04 AM Adhemerval Zanella Netto
<adhemerval.zanella@linaro.org> wrote:
>
>
>
> On 06/05/25 13:12, Khem Raj wrote:
> > On Mon, May 5, 2025 at 9:00 AM Adhemerval Zanella Netto
> > <adhemerval.zanella@linaro.org> wrote:
> >>
> >>
> >>
> >> On 29/04/25 03:46, Khem Raj wrote:
> >>> -ffile-prefix-map also implies -fdebug-prefix-map
> >>> and some systems may use --ffile-prefix-map for building
> >>> reprodubile systems
> >>
> >> Shouldn't we use just -ffile-prefix-map then?
> >
> > I think we should, this patch is a step in that direction
>
> I mean, should we just replace -fdebug-prefix-map with -ffile-prefix-map
> instead of using both? We recently bumped the minimum support gcc version,
> so I guess it should be more doable now.
I see, gcc8+ supports -ffile-prefix-map so we can do a replacement too
>
> >
> >>
> >>>
> >>> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> >>> ---
> >>> Makeconfig | 2 +-
> >>> 1 file changed, 1 insertion(+), 1 deletion(-)
> >>>
> >>> diff --git a/Makeconfig b/Makeconfig
> >>> index e35c5cfe4e..7a19c731c6 100644
> >>> --- a/Makeconfig
> >>> +++ b/Makeconfig
> >>> @@ -1176,7 +1176,7 @@ endif
> >>>
> >>> # The assembler can generate debug information too.
> >>> ifndef ASFLAGS
> >>> -ASFLAGS := $(filter -g% -fdebug-prefix-map=%,$(CFLAGS))
> >>> +ASFLAGS := $(filter -g% -fdebug-prefix-map=% -ffile-prefix-map=%,$(CFLAGS))
> >>> endif
> >>> override ASFLAGS += -Werror=undef $(ASFLAGS-config) $(asflags-cpu)
> >>>
> >>
>
More information about the Libc-alpha
mailing list