diff options
| author | Thomas Weißschuh <linux@weissschuh.net> | 2025-05-11 08:02:27 +0200 |
|---|---|---|
| committer | Masahiro Yamada <masahiroy@kernel.org> | 2025-05-12 15:04:13 +0900 |
| commit | 020d7f14489b8bc38c6bd4c5b3c25262e8b6de63 (patch) | |
| tree | dcf5125fe66b50469cf4da357847cdd69dd66504 /Makefile | |
| parent | f0e4b333cf67b3d5da56bd01a125f45c102f7d27 (diff) | |
| download | linux-next-history-020d7f14489b8bc38c6bd4c5b3c25262e8b6de63.tar.gz | |
Revert "kbuild: make all file references relative to source root"
This reverts commit cacd22ce69585a91c386243cd662ada962431e63.
-ffile-prefix-map 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 -ffile-prefix-map.
Reported-by: Matthieu Baerts <matttbe@kernel.org>
Closes: https://lore.kernel.org/lkml/edc50aa7-0740-4942-8c15-96f12f2acc7e@kernel.org/
Reported-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Closes: https://lore.kernel.org/lkml/aBEttQH4kimHFScx@intel.com/
Fixes: cacd22ce6958 ("kbuild: make all file references relative to source root")
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile index 64c514f4bc193..52f84aaf10252 100644 --- a/Makefile +++ b/Makefile @@ -1068,7 +1068,7 @@ KBUILD_CFLAGS += -fno-builtin-wcslen # change __FILE__ to the relative path to the source directory ifdef building_out_of_srctree -KBUILD_CPPFLAGS += $(call cc-option,-ffile-prefix-map=$(srcroot)/=) +KBUILD_CPPFLAGS += $(call cc-option,-fmacro-prefix-map=$(srcroot)/=) KBUILD_RUSTFLAGS += --remap-path-prefix=$(srcroot)/= endif |
