rust-lang / cc-rs

Rust library for build scripts to compile C/C++ code into a Rust library
https://docs.rs/cc
Apache License 2.0
1.76k stars 425 forks source link

Output msvc.exe in the output directory #1090

Closed ChrisDenton closed 4 weeks ago

ChrisDenton commented 4 weeks ago

Previously, msvc2.exe was being written to dev-tools/cc-test/msvc2.exe. I don't think that was intended and it is a bit annoying. This uses -Fe to set the output path, which should work with both cl (msvc) and clang-cl (clang).