I currently maintain a legacy C+ app that runs on x86/x86_64/armhf linux, all 4 android archs and x86/x86_64 windows.

The linux compilation phase takes 1m, whereas on windows (using MinGW) it takes 10m. It's not the end of the world, but would the MS compiler be faster? Better?

you are viewing a single comment's thread
view the rest of the comments
[–] 23 points 2 years ago (1 child)

From the perspective of the CI guy: Just cross compile from Linux.

You can get the Windows compilers for free - just CLI build tools are enough for your case. The setup can be a bit messy, though. Also, if it's a GCC only codebase so far there's a decent chance it has constructs which will not compile on MSVC. It will not necessarily be faster, though.

  • source
  • hideshow 1 child comment
  • [–] [S] 3 points 2 years ago

    if it’s a GCC only codebase so far there’s a decent chance it has constructs which will not compile on MSVC

    Yeah in recent experiments i thing i've hit that wall... next experiment: mingw on linux.

  • source
  • parent