tov / libffi-rs

Rust bindings for libffi
Apache License 2.0
104 stars 36 forks source link

cl.exe not found while compiling libffi-sys on windows gnu target #93

Open alex-s168 opened 2 months ago

alex-s168 commented 2 months ago

I am compiling a project using cargo build --target x86_64-pc-windows-gnu and get the following error:

error: failed to run custom build command for `libffi-sys v2.3.0`

Caused by:
  process didn't exit successfully: `C:\Users\Alexander.Nutz\uiua-analyzer\rt\rustrt\target\debug\build\libffi-sys-0b77652dadcc4eb0\build-script-build` (exit code: 101)
  --- stderr
  thread 'main' panicked at C:\Users\Alexander.Nutz\.cargo\registry\src\index.crates.io-6f17d22bba15001f\libffi-sys-2.3.0\build\msvc.rs:99:64:
  Could not locate cl.exe
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

I don't think it should try to use msvc since I specified the target to be a gnu env