alexcrichton opened PR #10911 from alexcrichton:update-asan-doc-test-settings to bytecodealliance:main:
It appears that rustdoc tests do not inherit profile settings nor default codegen unit settings. This means that an ASAN build of doc tests would use 1 CGU with no optimizations. Locally this balooned the doc tests for
wasmtime-wasito a whopping 16G of memory in one process locally. This was found in the wasip3-prototyping repository where more doc tests were added.This commit, for ASAN builds, updates the opt-level and codegen-units settings used for rustdoc. This gets the LLVM memory usage under control to avoid OOM-ing the github actions runner we're running on.
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested wasmtime-default-reviewers for a review on PR #10911.
alexcrichton requested pchickey for a review on PR #10911.
pchickey submitted PR review.
pchickey merged PR #10911.
Last updated: Dec 06 2025 at 07:03 UTC