@Taimon Hey, can you share details on how did you build the custom compiler?
Sure, if I can still remember the necessary steps. Some details might be missing.
First I installed cygwin with the necessary packages. I think opam was also in cygwin, otherwise I'm not sure where I got it from.
Then I added the
mingw repo as default to opam (opam repository add).
Next step was playing around with the opam switch concept. (Something like a toolchain container.)
To build the custom compiler, I ended up copying the ming repo structure into a local directory, adding it to opam as local repository and then modifying the opam file in the ocaml-variants package I wanted to base my new compiler on. (I think I actually created a new folder in ocaml-variants.)
This new variant can then be used with an opam switch, which in turn is then used to build WeiDU.
(I did some fiddling around with an empty switch and adding the ocaml-variant afterwards, but I don't think this is necessary.)
In the end, it doesn't look so difficult, but the documentation was not very clear on all of this, so I ended up playing around a lot.
Funny thing is, I actually ran into some of your posts on the OCaml board while trying to figure out how to build this.
Didn't look like they were really able to help you.