3 ms·
Why not just use Bazel?
by 7e 2y ago
Why not just use Bazel?
- jcelerier 2y agoHow do I do if I want to make something with bazel that is going to use libraries on the host computer? Say, I want to make an app that builds against system-provided Qt6, does Bazel finally allow this?
- malkia 2y agoHaven't tried it, but you can always `cc_import` a locally installed library and expose it - though not sure how this works across the wire... Then again, this might be all asking for trouble - what if your colleague has different installed version. Best is to have these artifacts (recompiled and/or in source form) some other way.
- rfoo 2y ago> though not sure how this works across the wire You send all header files to 1,000 boxes. Same as nocc. Oh, and if you really want, you can make Bazel ship your /usr/bin/gcc and co, too. It is just slow so nobody would like that. Or maybe in 2025 it does not feel slow any more (though still wasteful)?
- malkia 2y agoI think at some point, but could be misremembering, IncrediBuild did local preprocessing, and then all you need on the other end is compiler. It might be still an option if pre-processing (for your own codebase) is insignificant vs compilation, but hard to say. Though it greatly simplifies things with little massage (e.g. all these #pragma line - and make them deterministic using some path mapping, etc.)
- jcelerier 2y ago> what if your colleague has different installed version. "colleagues" does not make much sense for an open-source project built by people all around the world with various environments and where the tool should accomodate all of them
- malkia 2y agoRight, I'm giving my thoughts based on where I work, and actually we do enforce the same compiler for everyone, even where it's installed, but still..