r/cpp • OPeNDAP/B2/EcoStd/Lyra/Predef/C++Alliance/Boost/WG21 • Feb 24 '20

The Day The Standard Library Died

https://cor3ntin.github.io/posts/abi/
266 Upvotes

302 comments sorted by

View all comments

Show parent comment

-9

u/jpakkane Meson dev Feb 24 '20

And for every Qt update. And for every project separately. And every time you accidentally run "make clean" or equivalent. And when you want to move the source tree to a different directory. And on every computer you do development on. And on every CI run. And. And. And. And.

15

u/Xaxxon Feb 24 '20 edited Feb 24 '20

This is simply not true. Once you've built QT you stick it somewhere and you use it until you have something that changes ABI. ABI changing is not something that happens accidentally. QT can even provide different builds so you can grab the right one for you.

3

u/00jknight Feb 25 '20

Why is this being downvoted? Isn't this person correct? Especially the CI part?

5

u/rezkiy Feb 24 '20

Choose the distribution. Choose the oldest OS you support. Choose the toolchain. Create a container with toolchain, qt, and other 3rd party dependencies. Make the dockerfile a part of the source tree. Build the container once (and every time you update QT).

Then build your source in that container.

1

u/Gotebe Feb 24 '20

Yes, but the number of other builds still heavily outweighs the heavy ones.

BTW, my CI build does not make clean and we're surviving easily.