about summary refs log tree commit diff
path: root/src/tools/compiletest
diff options
context:
space:
mode:
authorSébastien Marie <semarie@users.noreply.github.com>2018-03-18 18:08:17 +0100
committerSébastien Marie <semarie@users.noreply.github.com>2018-03-18 18:08:17 +0100
commite269a7435e80e0c4e02e3a5aa21233ef28892def (patch)
tree4f9eb14680575f52d471a3f383e2a2dd12889af5 /src/tools/compiletest
parent8aa27ee30972f16320ae4a8887c8f54616fff819 (diff)
downloadrust-e269a7435e80e0c4e02e3a5aa21233ef28892def.tar.gz
rust-e269a7435e80e0c4e02e3a5aa21233ef28892def.zip
Allow test target to pass without installing
explicitly pass -L target-lib to rustdoc
Diffstat (limited to 'src/tools/compiletest')
-rw-r--r--src/tools/compiletest/src/runtest.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs
index 953a13a3f58..23bb39215d3 100644
--- a/src/tools/compiletest/src/runtest.rs
+++ b/src/tools/compiletest/src/runtest.rs
@@ -1325,6 +1325,8 @@ impl<'test> TestCx<'test> {
 
         rustdoc
             .arg("-L")
+            .arg(self.config.run_lib_path.to_str().unwrap())
+            .arg("-L")
             .arg(aux_dir)
             .arg("-o")
             .arg(out_dir)