Closed syvb closed 1 year ago
cargo-miri
probably doesn't know about the .vxe
suffix, so it doesn't create t.vxe
:
https://github.com/rust-lang/miri/blob/3ca53e03070d3e409d274d4f2bf56fb4377333ca/cargo-miri/bin.rs#L703-L710
I don't know if just fixing that is sufficient to support x86_64-wrs-vxworks
. There are some other places that do not support x86_64-wrs-vxworks
, for example:
https://github.com/rust-lang/miri/blob/3ca53e03070d3e409d274d4f2bf56fb4377333ca/src/shims/foreign_items.rs#L613-L616
cargo-miri could use echo | rustc - --crate-name the_crate_name --print=file-names --crate-type bin
to get the filename for an executable in a way that will work for every platform rustc supports. This is roughly what cargo does, except that it uses ____
as placeholder name.
cargo-miri
gets invoked by itself with a non-existent binary path when emulating thex86_64-wrs-vxworks
target, causing an error: