Re:Xmake: A modern C/C++ build tool
by padde on Sunday May 05, 2024 @05:24AM
(#40263379)
Does it scale for large monorepos? That's where CMake hits its limits. With tremendous effort we switched to Bazel, which has brought down configure+build times to less than 1/10.
[ Parent
| on HN ]
Re:Xmake: A modern C/C++ build tool
by scrivanodev on Sunday May 05, 2024 @06:28AM
(#40263712)
How does Bazel help reduce build times?
It caches build artifacts in a blob store and just downloads them instead of compiling them where possible
Re:Xmake: A modern C/C++ build tool
by scrivanodev on Sunday May 05, 2024 @06:46AM
(#40263805)
I see, but that's also possible with CMake right? You can use ccache or sccache via -DCMAKE_CXX_COMPILER_LAUNCHER=ccache/sccache.
Re:Xmake: A modern C/C++ build tool
by actionfromafar on Sunday May 05, 2024 @07:31AM
(#40264044)
Sure. If you have any doubts at all that you need Bazel, you don’t need Bazel.
I suppose, but you’d be limited to a small number of supported languages, whereas bazel works for just about anything. Like my sibling commenter noted, you only need it if you really need it.
Re:Xmake: A modern C/C++ build tool
by lunfard000 on Sunday May 05, 2024 @07:43AM
(#40264104)
You are making it sound like it was a compilation process optimization, but it is just CI thing.
Build artifact caching, and also build farm.
In the non-Bazel world, that's ccache and distcc