4 ms·
I do everything under WSL on Windows. So, still effectively Linux :) As for Cygwin, that was my choice for a long time when I started with OCaml. For building
by antron-prime 5y ago
I do everything under WSL on Windows. So, still effectively Linux :)
As for Cygwin, that was my choice for a long time when I started with OCaml.
For building fully-native Windows apps, I've used https://fdopen.github.io/opam-repository-mingw/installation/ https://fdopen.github.io/opam-repository-mingw/installation/. However, it still requires a Cygwin environment to run in, because, as yawaramin mentioned, much of the OCaml ecosystem assumes Linux-like tools during build. So, effectively, the Windows setup looks a bit like cross-compilation, where your build environment is Cygwin, but the output is non-Cygwin full-native Windows binaries.
The compiler itself and core tools like Dune don't assume Linux tools and are portable. It's many of the packages among the rest of what is there that trigger the Linux tools dependency.