rust-lua53 icon indicating copy to clipboard operation
rust-lua53 copied to clipboard

MSVC support

Open therustmonk opened this issue 7 years ago • 4 comments

Lua uses ANSI C, so MSVC can compile it and Rust supports MSVC ABI.

Feature: Add possibility to compile library within Visual Studio environment.

therustmonk avatar Sep 02 '16 22:09 therustmonk

This becomes trivial if we throw away the platform-specific configuration in Lua's makefile and let the gcc crate (which, despite its name, supports MSVC) be responsible for building the library. Then it's a simple matter of passing in the list of .c files and the output filename and everything is done.

SpaceManiac avatar Sep 02 '16 23:09 SpaceManiac

Looks fine. Also we'll take full control over all defines. We should implement it :+1:

therustmonk avatar Sep 03 '16 06:09 therustmonk

Is there any progress on this?

Boscop avatar Jun 13 '17 10:06 Boscop

@Boscop Currently, you can compile using MSVC by running your cargo commands within the VS developer command prompt.

isavegas avatar Jun 13 '17 20:06 isavegas