You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In bevyengine/bevy#14129, we discovered an issue when running cargo test --doc on Windows when linking Bevy dynamically. See that issue for a reproducible minimal example.
cargo-clif uses a separate sysroot. I think you can use rustc-clif --print target-libdir where rustc-clif is the executable right next to the cargo-clif you used for running tests.
I've added the output of that command to my PATH and tried running doc tests in a project I happened to have open. Good news: the path resolution works! Bad news: some tests fail with the following:
Test executable failed (exit code: 0xc000001d).
stderr:
thread 'main' panicked at D:\a\rustc_codegen_cranelift\rustc_codegen_cranelift\build\stdlib\library\std\src\sync\once.rs:217:20:
assertion failed: state_and_queue.addr() & STATE_MASK == RUNNING
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
I'll try seeing if this also happens on the linked minimal example.
In bevyengine/bevy#14129, we discovered an issue when running
cargo test --doc
on Windows when linking Bevy dynamically. See that issue for a reproducible minimal example.In bevyengine/bevy-website#1522, I added a workaround to Bevy's documentation, namely:
This fixes this issue when running
cargo test --doc
, butcargo clif test --doc
still results in a dynamic library resolution error:The text was updated successfully, but these errors were encountered: