Switching between compiled master + branches



If I modify the code in the Julia repo and make the binary, the Julia processes using it currently stop working until it is finished, and I can’t start new ones. This is a minor interruption to my workflow since (incremental) compilation takes 5-10min on my machine.

Is there a trick to keep a working binary while I make changes, or should I just maintain a separate clone of the repo for the two purposes? It is around 5GB, which is feasible but seems wasteful.


I guess the best solution is to keep a separate repo then. BTW, it is only about 3.6GB.


The solution based on git worktree suggested by @yuyichao in this thread Building multiple versions of Julia works well for me, particularly if you can use lots of system libraries.