[Bug debugedit/33602] Try to support "relative" paths (-ffile-prefix-map=.)

mark at klomp dot org sourceware-bugzilla@sourceware.org
Thu Nov 6 13:58:25 GMT 2025


https://sourceware.org/bugzilla/show_bug.cgi?id=33602

--- Comment #1 from Mark Wielaard <mark at klomp dot org> ---
I was confused, -ffile-prefix-map=. on its own isn't valid.

$ gcc -o -g -ffile-prefix-map=. -c ./hello.c 
cc1: error: invalid argument ‘.’ to ‘-ffile-prefix-map’

But it might be specified as $ gcc -o -g -ffile-prefix-map=. -c ./hello.c 
cc1: error: invalid argument ‘.’ to ‘-ffile-prefix-map’

It might be specified as -ffile-prefix-map=${PWD}=. or
-ffile-prefix-map=${CMAKE_SOURCE_DIR}=.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Debugedit mailing list