Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

An other option that is not mentioned is cross compiling with clang-cl on a Linux host to a Windows target. I believe this is much harder to set up, but it could have better compile performance than compiling on Windows. It would be pretty funny if compiling with clang-cl on WSL would be faster than compiling with clang-cl on Windows natively.


Did that. Fastest is msvc natively via cmake (3m). Slowest is mingw on windows via autotools (>30m). clangcl vs msvc was not much difference (less than 30s diff). linux builds are from 3m (cmake) to 8m (autotools).

clangcl on WSL it would be much faster, but msvc natively would beat it, esp. if you turn off the virus scanner and inherited filesystem permissions. The sheer amount of additional msvc warnings (integer promotion should not really warn) would slow it down though.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: