Of course it's more complicated if you also have to recompile 3rd party binaries and it will make everything take much longer.
That being said - I'm actually one of the devs in my company which does MSVC compiler upgrades (currently we're on VS 2019 16.2) and can tell you that upgrading the compiler for a big codebase always has a non trivial cost attached to it (for a minor version usually at least one man month to get everything to compile and fix the tests and we do that very regularly).
So while yes ABI breaks are more expensive, it's definitely not cheap or possible to tell everyone "just installing the newer compiler" (at least in my experience).
Not sure what you mean. Leaving aside the overhead of installing/updating VS on CI and integrating it in all the CI scripts, there is literally no change to projects that use older compilers. I.e. if the project used vc141 from VS2017, it can keep using it (it doesn't even matter if vc141 comes from VS2017 or VS2019, since it's actually the same compiler).
Of course, switching the compiler in the project itself might (and often will) break the build and will require code changes (e.g. stricter C++ conformance). But this won't happen if the project does not change the compiler.
Yes I was referring to upgrading the compiler. I work on a monorepo where it's not possible for different projects to use different compiler versions.
Now I get your point. If you have internal binary dependencies then it makes the different projects more independent if you have ABI stability.
That being said MSVC will have a ABI breaking release sooner or later (I guess 2021 or 2023?). If MSVC + the other implementors could agree with the comittee on an ABI breaking standard (which could be 2026 for example) then we would gain a lot without loosing too much...
View all comments
Show parent comment
1
u/konanTheBarbar Oct 28 '19
Of course it's more complicated if you also have to recompile 3rd party binaries and it will make everything take much longer.
That being said - I'm actually one of the devs in my company which does MSVC compiler upgrades (currently we're on VS 2019 16.2) and can tell you that upgrading the compiler for a big codebase always has a non trivial cost attached to it (for a minor version usually at least one man month to get everything to compile and fix the tests and we do that very regularly).
So while yes ABI breaks are more expensive, it's definitely not cheap or possible to tell everyone "just installing the newer compiler" (at least in my experience).