@@ -93,15 +93,14 @@ quiet_cmd_rustdoc = RUSTDOC $(if $(rustdoc_host),H, ) $<
93
93
# and then retouch the generated files.
94
94
rustdoc : rustdoc-core rustdoc-macros rustdoc-compiler_builtins \
95
95
rustdoc-alloc rustdoc-kernel
96
- $(Q)cp $(srctree)/Documentation/images/logo.svg $(rustdoc_output)
97
- $(Q)cp $(srctree)/Documentation/images/COPYING-logo $(rustdoc_output)
96
+ $(Q)cp $(srctree)/Documentation/images/logo.svg $(rustdoc_output)/static.files/
97
+ $(Q)cp $(srctree)/Documentation/images/COPYING-logo $(rustdoc_output)/static.files/
98
98
$(Q)find $(rustdoc_output) -name '*.html' -type f -print0 | xargs -0 sed -Ei \
99
- -e 's:rust-logo\.svg:logo.svg:g' \
100
- -e 's:rust-logo\.png:logo.svg:g' \
101
- -e 's:favicon\.svg:logo.svg:g' \
102
- -e 's:<link rel="alternate icon" type="image/png" href="[./]*favicon-(16x16|32x32)\.png">::g'
103
- $(Q)echo '.logo-container > img { object-fit: contain; }' \
104
- >> $(rustdoc_output)/rustdoc.css
99
+ -e 's:rust-logo-[0-9a-f]+\.svg:logo.svg:g' \
100
+ -e 's:favicon-[0-9a-f]+\.svg:logo.svg:g' \
101
+ -e 's:<link rel="alternate icon" type="image/png" href="[/.]+/static\.files/favicon-(16x16|32x32)-[0-9a-f]+\.png">::g'
102
+ $(Q)for f in $(rustdoc_output)/static.files/rustdoc-*.css; do \
103
+ echo ".logo-container > img { object-fit: contain; }" >> $$f; done
105
104
106
105
rustdoc-macros : private rustdoc_host = yes
107
106
rustdoc-macros : private rustc_target_flags = --crate-type proc-macro \
@@ -290,6 +289,7 @@ bindgen_skip_c_flags := -mno-fp-ret-in-387 -mpreferred-stack-boundary=% \
290
289
-fno-reorder-blocks -fno-allow-store-data-races -fasan-shadow-offset=% \
291
290
-fzero-call-used-regs=% -fno-stack-clash-protection \
292
291
-fno-inline-functions-called-once -fsanitize=bounds-strict \
292
+ -fstrict-flex-arrays=% \
293
293
--param=% --param asan-%
294
294
295
295
# Derived from `scripts/Makefile.clang`.
0 commit comments