Message ID | 20250219-rust-path-remap-v2-1-8ce2c10d4d66@weissschuh.net (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [v2] kbuild, rust: use -fremap-path-prefix to make paths relative | expand |
diff --git a/Makefile b/Makefile index 9e0d63d9d94b90672f91929e5e148e5a0c346cb6..9ed2222fafd4fa37a367b87a5c681936368318e7 100644 --- a/Makefile +++ b/Makefile @@ -1068,6 +1068,7 @@ endif # change __FILE__ to the relative path to the source directory ifdef building_out_of_srctree KBUILD_CPPFLAGS += $(call cc-option,-fmacro-prefix-map=$(srcroot)/=) +KBUILD_RUSTFLAGS += --remap-path-prefix=$(srcroot)/= endif # include additional Makefiles when needed