Skip to content

Commit 8cf5b3f

Browse files
t-8chmasahir0y
authored andcommitted
Revert "kbuild, rust: use -fremap-path-prefix to make paths relative"
This reverts commit dbdffaf. --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: dbdffaf ("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>
1 parent 020d7f1 commit 8cf5b3f

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1069,7 +1069,6 @@ KBUILD_CFLAGS += -fno-builtin-wcslen
10691069
# change __FILE__ to the relative path to the source directory
10701070
ifdef building_out_of_srctree
10711071
KBUILD_CPPFLAGS += $(call cc-option,-fmacro-prefix-map=$(srcroot)/=)
1072-
KBUILD_RUSTFLAGS += --remap-path-prefix=$(srcroot)/=
10731072
endif
10741073

10751074
# include additional Makefiles when needed

0 commit comments

Comments
 (0)