Skip to content

Commit 7f3a62b

Browse files
author
aditijannu
committed
Fix run make tests when it can't find dynamically linked librustc_driver.
1 parent 519d892 commit 7f3a62b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/compiletest/src/runtest.rs

+2
Original file line numberDiff line numberDiff line change
@@ -3784,6 +3784,7 @@ impl<'test> TestCx<'test> {
37843784
.env("TMPDIR", &tmpdir)
37853785
.env("LD_LIB_PATH_ENVVAR", dylib_env_var())
37863786
.env("HOST_RPATH_DIR", cwd.join(&self.config.compile_lib_path))
3787+
.env("LD_LIBRARY_PATH", cwd.join(&self.config.compile_lib_path))
37873788
.env("TARGET_RPATH_DIR", cwd.join(&self.config.run_lib_path))
37883789
.env("LLVM_COMPONENTS", &self.config.llvm_components)
37893790
// We for sure don't want these tests to run in parallel, so make
@@ -3838,6 +3839,7 @@ impl<'test> TestCx<'test> {
38383839
.env("RUSTC", cwd.join(&self.config.rustc_path))
38393840
.env("TMPDIR", &tmpdir)
38403841
.env("HOST_RPATH_DIR", cwd.join(&self.config.compile_lib_path))
3842+
.env("LD_LIBRARY_PATH", cwd.join(&self.config.compile_lib_path))
38413843
.env("TARGET_RPATH_DIR", cwd.join(&self.config.run_lib_path))
38423844
.env("LLVM_COMPONENTS", &self.config.llvm_components)
38433845
// We for sure don't want these tests to run in parallel, so make

0 commit comments

Comments
 (0)