emacscollective / borg

Assimilate Emacs packages as Git submodules
https://emacsmirror.net/manual/borg
GNU General Public License v3.0
255 stars 28 forks source link

Add support for parallel/concurrent builds #152

Closed darkfeline closed 8 months ago

darkfeline commented 8 months ago

Apologies if this is a bad request, I have read the docs and skimmed the code and I neither see support for this feature nor any statement that such a feature would not be supported.

I think the request is self-explanatory.

As a naive implementation, this could be done like:

make -j build/{borg,compat,<all clones here>}

# Add to Makefile:
build/<all other clones>: build/borg build/compat
tarsius commented 8 months ago

I would recommend against doing this, as it likely brings back the risk of leaking outdated loaded dependencies into the new byte-code.

darkfeline commented 8 months ago

IIUC the outdated dependency problem can be solved by adding (setq load-prefer-newer t) to etc/borg/init.el?

tarsius commented 8 months ago

It should help at least. Using make clean; make -j build/... would probably be even better.

Please feel free to experiment with such approaches in your configuration (and to share your experience here), but I don't plan to officially support this any time soon.