Skip to content

Dynamically linked library path resolution with cargo clif test --doc differs from cargo test --doc #1505

Closed
@janhohenheim

Description

@janhohenheim

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:

In order to run cargo test --doc, you must also add the path returned by rustc --print target-libdir to your PATH environment variable.

This fixes this issue when running cargo test --doc, but cargo clif test --doc still results in a dynamic library resolution error:

Test executable failed (exit code: 0xc0000135).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions