version control - git (any SCM) and compiling object files, switching branches, physiology thereof -


if compile branch a, switch branch b, compile, , switch branch a.

all object files touched compile of branch b have recompiled!

normally 1 not check-in object files, there seems little choice here.

what ideal working practices here?

only object files dependencies differ between 2 branches need rebuilt.

when switching branches git doesn't touch files don't differ between 2 branches.

so long have appropriate dependencies expressed or deduced in build system, incremental build after branch switch work , reasonably efficient. in many of projects switch branches , incremental builds fast , reliable.

if want work on 2 branches without wanting rebuild @ when switching branches should use second clone , work in independent working areas.

checking in object files same repository source creates them bad idea. start, allows possibility of checking in input , output inconsistent.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -