rust-cross / cargo-xwin

Cross compile Cargo project to Windows MSVC target with ease
Other
357 stars 30 forks source link

Test and Run support #5

Closed Sporif closed 2 years ago

Sporif commented 2 years ago

Would it be possible to add support for cargo test and cargo run? I'm trying to test blake3 using CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_RUNNER=wine but building the tests with xwinbuild and then trying cargo test --target x86_64-pc-windows-msvc does a rebuild that fails with error: linker link.exe not found.

messense commented 2 years ago

I think it's possible but it will take some time to implement. IMO cargo run isn't a big issue since most of the time you know the binary name and path, you can just invoke wine with that.

messense commented 2 years ago

cargo xwintest added in v0.4.0.

Sporif commented 2 years ago

Great! I think this can be closed as it works well and like you said cargo run isn't really needed.

messense commented 2 years ago

FYI, I've renamed this project to cargo-xwin in v0.5.0. Now xwinbuild and xwintest become subcomands of xwin:

cargo xwin build --target x86_64-pc-windows-msvc
cargo xwin test --target x86_64-pc-windows-msvc