about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-03-22 17:51:26 +0800
committerkennytm <kennytm@gmail.com>2018-03-22 22:43:38 +0800
commit20eaf351a20d1ac1ff2de9abc80fe7bff9737843 (patch)
treed2708c1bb60327d6f9aa93ae1a25da2659abd113 /src/tools
parent8d3f3f0cac3de7dfbb126db3c48d7499c96d86ec (diff)
parente269a7435e80e0c4e02e3a5aa21233ef28892def (diff)
Rollup merge of #49140 - semarie:rustdoc-test-path, r=alexcrichton
Allow test target to pass without installing

explicitly pass -L target-lib to rustdoc

on OpenBSD, without it, it fails on several tests with:
```
error[E0463]: can't find crate for `std`
```
Diffstat (limited to 'src/tools')
-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 ee348cddb3c..43220af4893 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)