[target.x86_64-pc-windows-gnu]
linker = "x86_64-w64-mingw32-gcc"
ar = "x86_64-w64-mingw32-gcc-ar"
Build test binaries:
cargo test --target=x86_64-pc-windows-gnu
Finished dev [unoptimized + debuginfo] target(s) in 0.12s
Running target/x86_64-pc-windows-gnu/debug/deps/capstone-e3abe0e98ae3c2a7.exe
run-detectors: unable to find an interpreter for target/x86_64-pc-windows-gnu/debug/deps/capstone-e3abe0e98ae3c2a7.exe
error: test failed, to rerun pass '-p capstone --lib'
cargo test
fails for targetx86_64-pc-windows-gnu
on Windows.Example failure on AppVeyor: https://ci.appveyor.com/project/tmfink/capstone-rs/build/job/ctj6j2w4ggr6vv5w
However, I have been able to cross-compile for
x86_64-pc-windows-gnu
from an Ubuntu 18.04 host:apt-get install g++-mingw-w64-x86-64 wine
~/.cargo/config
: