Skip to content

Commit 5b3dfb0

Browse files
committed
auto merge of #9393 : alexcrichton/rust/fix-docs, r=brson
This needs libstd in its proper location to resolve references when generating docs for libextra.
2 parents 44dc3fb + 02b27b2 commit 5b3dfb0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

mk/docs.mk

+6-6
Original file line numberDiff line numberDiff line change
@@ -231,12 +231,12 @@ doc/$(1)/rust.css: rust.css
231231
DOCS += doc/$(1)/index.html
232232
endef
233233

234-
# The library documenting macro
235-
# $(1) - The output directory
234+
# The "next generation" library documenting macro
235+
# $(1) - The crate name (std/extra)
236236
# $(2) - The crate file
237-
# $(3) - The crate soruce files
237+
# $(3) - The relevant host build triple (to depend on libstd)
238238
define libdocng
239-
doc/ng/$(1)/index.html: $(2) $(3) $$(RUSTDOC_NG)
239+
doc/ng/$(1)/index.html: $$(RUSTDOC_NG) $$(TLIB2_T_$(3)_H_$(3))/$(CFG_STDLIB_$(3))
240240
@$$(call E, rustdoc_ng: $$@)
241241
$(Q)$(RUSTDOC_NG) html $(2) -o doc/ng
242242

@@ -245,8 +245,8 @@ endef
245245

246246
$(eval $(call libdoc,std,$(STDLIB_CRATE),$(STDLIB_INPUTS)))
247247
$(eval $(call libdoc,extra,$(EXTRALIB_CRATE),$(EXTRALIB_INPUTS)))
248-
$(eval $(call libdocng,std,$(STDLIB_CRATE),$(STDLIB_INPUTS)))
249-
$(eval $(call libdocng,extra,$(EXTRALIB_CRATE),$(EXTRALIB_INPUTS)))
248+
$(eval $(call libdocng,std,$(STDLIB_CRATE),$(CFG_BUILD_TRIPLE)))
249+
$(eval $(call libdocng,extra,$(EXTRALIB_CRATE),$(CFG_BUILD_TRIPLE)))
250250
endif
251251

252252

0 commit comments

Comments
 (0)