From d75c76402805034afaa1f0a6ff96d29db0ec4042 Mon Sep 17 00:00:00 2001 From: Joshua Nelson Date: Fri, 30 Apr 2021 23:30:13 -0400 Subject: [PATCH] Fix `x.py test --stage 0 src/tools/miri` Previously, it would give an error that libLLVM.so couldn't be found. --- src/bootstrap/test.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bootstrap/test.rs b/src/bootstrap/test.rs index 965d11621450b..ff6501eab369b 100644 --- a/src/bootstrap/test.rs +++ b/src/bootstrap/test.rs @@ -466,6 +466,8 @@ impl Step for Miri { cargo.env("RUST_BACKTRACE", "1"); // Let cargo-miri know where xargo ended up. cargo.env("XARGO_CHECK", builder.out.join("bin").join("xargo-check")); + // Allow cargo-miri to load libLLVM.so at runtime. + cargo.add_rustc_lib_path(builder, compiler); let mut cargo = Command::from(cargo); if !try_run(builder, &mut cargo) {