about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--mk/docs.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/mk/docs.mk b/mk/docs.mk
index d297055ba9a..fae1ddd9bff 100644
--- a/mk/docs.mk
+++ b/mk/docs.mk
@@ -255,7 +255,7 @@ doc/$(1)/index.html: CFG_COMPILER_HOST_TRIPLE = $(CFG_TARGET)
 doc/$(1)/index.html: $$(LIB_DOC_DEP_$(1)) doc/$(1)/
 	@$$(call E, rustdoc: $$@)
 	$$(Q)CFG_LLVM_LINKAGE_FILE=$$(LLVM_LINKAGE_PATH_$(CFG_BUILD)) \
-		$$(RUSTDOC) --cfg dox --cfg stage2 $$<
+		$$(RUSTDOC) --cfg dox --cfg stage2 $$(RUSTFLAGS_$(1)) $$<
 endef
 
 $(foreach crate,$(DOC_CRATES),$(eval $(call DEF_LIB_DOC,$(crate),DOC_TARGETS)))