c2rust icon indicating copy to clipboard operation
c2rust copied to clipboard

Windows building support

Open kant2002 opened this issue 1 month ago • 1 comments

This is draft PR to check if there is appetite for that Current problems which I would work on

  • I should examine what libc variants has simply different signatures, I fail to recognize that, and ignore too much probably.
  • libclangAstExporter currently failed to build with error
 unsupported or unknown VisualStudio version: 18.0
  if another version is installed consider running the appropriate vcvars script before building this crate
  ', .....cargo\registry\src\github.com-1ecc6299db9ec823\cmake-0.1.50\src\lib.rs:955:2
  • patch executable should be on PATH. I think you may find it in C:\Program Files\Git\usr\bin\ on most dev machines.

That probably indication that cmake create should be updated, but that's whole can of worm.

Would be glad to recive feedback on the general direction

kant2002 avatar Dec 08 '25 17:12 kant2002

I think the second error is due to cmake missing support for VS 2026 https://github.com/rust-lang/cmake-rs/pull/255

kant2002 avatar Dec 08 '25 20:12 kant2002