Revert "kbuild, rust: use -fremap-path-prefix to make paths relative"
authorThomas Weißschuh <linux@weissschuh.net>
Sun, 11 May 2025 06:02:28 +0000 (08:02 +0200)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 12 May 2025 06:04:13 +0000 (15:04 +0900)
commit8cf5b3f836147d8d4e7c6eb4c01945b97dab8297
tree091e041b3cf4f88d0c54d3f13d4417c8cbf8b9ef
parent020d7f14489b8bc38c6bd4c5b3c25262e8b6de63
Revert "kbuild, rust: use -fremap-path-prefix to make paths relative"

This reverts commit dbdffaf50ff9cee3259a7cef8a7bd9e0f0ba9f13.

--remap-path-prefix breaks the ability of debuggers to find the source
file corresponding to object files. As there is no simple or uniform
way to specify the source directory explicitly, this breaks developers
workflows.

Revert the unconditional usage of --remap-path-prefix, equivalent to the
same change for -ffile-prefix-map in KBUILD_CPPFLAGS.

Fixes: dbdffaf50ff9 ("kbuild, rust: use -fremap-path-prefix to make paths relative")
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Makefile