[PATCH v2 01/33] rust: kbuild: remove `--remap-path-prefix` workarounds

Tamir Duberstein tamird at kernel.org
Mon Apr 6 07:28:56 PDT 2026


On Mon, 06 Apr 2026 01:52:37 +0200, Miguel Ojeda <ojeda at kernel.org> wrote:
> Commit 8cf5b3f83614 ("Revert "kbuild, rust: use -fremap-path-prefix
> to make paths relative"") removed `--remap-path-prefix` from the build
> system, so the workarounds are not needed anymore.
> 
> Thus remove them.
> 
> Note that the flag has landed again in parallel in this cycle in
> commit dda135077ecc ("rust: build: remap path to avoid absolute path"),
> together with `--remap-path-scope=macro` [1]. However, they are gated on
> `rustc-option-yn, --remap-path-scope=macro`, which means they are both
> only passed starting with Rust 1.95.0 [2]:
> 
> [...]

Reviewed-by: Tamir Duberstein <tamird at kernel.org>

-- 
Tamir Duberstein <tamird at kernel.org>



More information about the linux-riscv mailing list