Skip to content

Commit c9c7be7

Browse files
committed
mk: Pass the same flags to rustdoc as rustc
This ensures that def ids don't drift too much over time. Closes #15309
1 parent 29299d5 commit c9c7be7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mk/docs.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ doc/$(1)/index.html: CFG_COMPILER_HOST_TRIPLE = $(CFG_TARGET)
255255
doc/$(1)/index.html: $$(LIB_DOC_DEP_$(1)) doc/$(1)/
256256
@$$(call E, rustdoc: $$@)
257257
$$(Q)CFG_LLVM_LINKAGE_FILE=$$(LLVM_LINKAGE_PATH_$(CFG_BUILD)) \
258-
$$(RUSTDOC) --cfg dox --cfg stage2 $$<
258+
$$(RUSTDOC) --cfg dox --cfg stage2 $$(RUSTFLAGS_$(1)) $$<
259259
endef
260260

261261
$(foreach crate,$(DOC_CRATES),$(eval $(call DEF_LIB_DOC,$(crate),DOC_TARGETS)))

0 commit comments

Comments
 (0)