Skip to content

Commit b7efa79

Browse files
committed
kbuild: canonicalization of target path not needed anymore
In Rust-for-Linux#272 `realpath` was added to work around a bug in `rustdoc`, but it is not needed anymore since rust-lang/rust#85361, i.e. since Rust 1.54.0. Signed-off-by: Miguel Ojeda <[email protected]>
1 parent a28ac22 commit b7efa79

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

scripts/Makefile.build

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,10 +328,7 @@ $(obj)/%.lst: $(src)/%.c FORCE
328328
# Compile Rust sources (.rs)
329329
# ---------------------------------------------------------------------------
330330

331-
# Need to use absolute path here and have symbolic links resolved;
332-
# otherwise rustdoc and rustc compute different hashes for the target.
333-
rust_cross_flags := --target=$(realpath $(KBUILD_RUST_TARGET))
334-
331+
rust_cross_flags := --target=$(KBUILD_RUST_TARGET)
335332
rust_allowed_features := allocator_api,bench_black_box,concat_idents,generic_associated_types
336333

337334
rust_common_cmd = \

0 commit comments

Comments
 (0)