c2rust icon indicating copy to clipboard operation
c2rust copied to clipboard

Upgrade `cmake-rs` for AST explorer

Open stevefan1999-personal opened this issue 3 years ago • 5 comments

The bug is fixed in upstream but is yet released. This is needed to try to build AST explorer on Windows, in particular VS2022 and MSVC, this is so far the obstacle

stevefan1999-personal avatar May 12 '22 19:05 stevefan1999-personal

...although using MinGW should work, why not? (don't close yet, it's bout 4am in the morning in local time, lemme test it when I woke)

stevefan1999-personal avatar May 12 '22 19:05 stevefan1999-personal

@stevefan1999-personal, does it work with MinGW? Regardless, we'll upgrade cmake-rs as soon as the next release comes out.

kkysen avatar Jun 29 '22 03:06 kkysen

@kkysen I hacked it a little to add VS2022. However I met other obstacles in using it from Windows, most notably the lack of POSIX support in Windows makes it rather limited. I was hoping to translate some old C shellcode and the renowned QuakeWin engine using c2rust but it seems like it is not working that well. Even with the simple OTCC example, some functions are mysteriously missing.

stevefan1999-personal avatar Jun 29 '22 04:06 stevefan1999-personal

That's unfortunate.

I also saw someone else, @Shadlock0133, had some trouble with building c2rust on Windows due to Windows' LLVM releases not containing llvm-config unless you build from source (https://github.com/immunant/c2rust/issues/463). Did you have any other issues like that?

kkysen avatar Jun 29 '22 04:06 kkysen

@kkysen Yes indeed. I have to build LLVM from source myself. For some reason I failed to contain libgcc and after copying it that works.

stevefan1999-personal avatar Jun 29 '22 07:06 stevefan1999-personal