summary refs log tree commit diff
path: root/src/test
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/test
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/test')
-rw-r--r--src/test/run-make/tools.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/run-make/tools.mk b/src/test/run-make/tools.mk
index d9103e19927..af1707de6c0 100644
--- a/src/test/run-make/tools.mk
+++ b/src/test/run-make/tools.mk
@@ -9,7 +9,7 @@ RUSTC_ORIGINAL := $(RUSTC)
 BARE_RUSTC := $(HOST_RPATH_ENV) '$(RUSTC)'
 BARE_RUSTDOC := $(HOST_RPATH_ENV) '$(RUSTDOC)'
 RUSTC := $(BARE_RUSTC) --out-dir $(TMPDIR) -L $(TMPDIR) $(RUSTFLAGS)
-RUSTDOC := $(BARE_RUSTDOC)
+RUSTDOC := $(BARE_RUSTDOC) -L $(TARGET_RPATH_DIR)
 ifdef RUSTC_LINKER
 RUSTC := $(RUSTC) -Clinker=$(RUSTC_LINKER)
 RUSTDOC := $(RUSTDOC) --linker $(RUSTC_LINKER) -Z unstable-options