summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorOnur Özkan <work@onurozkan.dev>2025-12-24 16:53:43 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-02-06 18:55:47 +0300
commite88964adbb42208bdcb0b366d6080d38e0ba1776 (patch)
tree3028e002161addb4752c3730d2c3f960af950042 /scripts
parent3e62db1e3140449608975e29e0979cc5f3b1cc07 (diff)
downloadlinux-e88964adbb42208bdcb0b366d6080d38e0ba1776.tar.xz
scripts: generate_rust_analyzer: remove sysroot assertion
commit 1b83ef9f7ad4635c913b80ef5e718f95f48e85af upstream. With nixpkgs's rustc, rust-src component is not bundled with the compiler by default and is instead provided from a separate store path, so this assumption does not hold. The assertion assumes these paths are in the same location which causes `make LLVM=1 rust-analyzer` to fail on NixOS. Link: https://rust-for-linux.zulipchat.com/#narrow/stream/x/topic/x/near/565284250 Signed-off-by: Onur Özkan <work@onurozkan.dev> Reviewed-by: Gary Guo <gary@garyguo.net> Fixes: fe992163575b ("rust: Support latest version of `rust-analyzer`") Cc: stable@vger.kernel.org Link: https://patch.msgid.link/20251224135343.32476-1-work@onurozkan.dev [ Reworded title. - Miguel ] Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/generate_rust_analyzer.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/scripts/generate_rust_analyzer.py b/scripts/generate_rust_analyzer.py
index f9c9a2117632..0ae4005806b3 100755
--- a/scripts/generate_rust_analyzer.py
+++ b/scripts/generate_rust_analyzer.py
@@ -170,9 +170,6 @@ def main():
level=logging.INFO if args.verbose else logging.WARNING
)
- # Making sure that the `sysroot` and `sysroot_src` belong to the same toolchain.
- assert args.sysroot in args.sysroot_src.parents
-
rust_project = {
"crates": generate_crates(args.srctree, args.objtree, args.sysroot_src, args.exttree, args.cfgs, args.core_edition),
"sysroot": str(args.sysroot),