News for hackers. Stuff that matters.
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.
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?
Re:Xmake: A modern C/C++ build tool by phyrex on Sunday May 05, 2024 @06:40AM (#40263776)
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.
Re:Xmake: A modern C/C++ build tool by phyrex on Sunday May 05, 2024 @07:11PM (#40269476)
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.
Re:Xmake: A modern C/C++ build tool by DrBazza on Sunday May 05, 2024 @10:57AM (#40265351)
Build artifact caching, and also build farm.

In the non-Bazel world, that's ccache and distcc

https://bazel.build/remote/caching

https://github.com/bazelbuild/bazel-buildfarm