eudoxia0 / cmacro

Lisp macros for C
881 stars 29 forks source link

What about Windows support? #14

Open ohmree opened 7 years ago

ohmree commented 7 years ago

Even the makefile assumes that it's being used on POSIX, but I'd like to use cmacro with Raylib on Windows (if I could I'd use Linux but it's not up to me currently). Is it possible?

pluckyporcupine commented 4 years ago

This is a really late response, but, in case anyone else sees this, I got it to build in MSYS2's MinGW64 terminal (the one that builds executables that don't depend on the MSYS2 DLL) with no changes. You just have to download SBCL and manually add it to the path.

Alternatively, given that the exported source should be fairly platform-agnostic (I've not used it yet, but it would stand to reason that it is), you could use CMC entirely in Windows Subsystem for Linux and build the resulting source in Windows (the one caveat is that I couldn't get the latest version of SBCL running in the version of Ubuntu that's available as a WSL distro due to the glibc 2.28 requirement and am instead running version 1.5.0; I am unsure of whether the latest version will run in other WSL distros). You could even install something like MXE and cross-compile for Windows from Windows Subsystem for Linux. There are lots of options. :D