I was trying to build my project for both 32 and 64 bits. After a lot of work (I’m not familiar with developing on Windows) I figured out I should use the VS compiler (cl.exe), and to be able to compile to both 32 and 64 bits I should run the
vcvars64.bat script (inspired by this).
However, even though
visualstudio2017buildtools is installed by default, it seems this bat files are not included. I managed to get them by installing more packages with
choco install -y visualstudio2017community visualstudio2017-workload-nativecrossplat. This worked in the end (see commit), but it takes about 10 minutes for Travis to run this (in comparison, the Linux and OSX builds take about 1 minute see here)
My question is: Is there a better and faster way to do this? This solution seems pretty hacky.