3 ms·
> I'm having a hard time thinking of a use case for complex data structures in a build script. Can you give a real world example? Look at how a modern build sy
by dom0 9y ago
> I'm having a hard time thinking of a use case for complex data structures in a build script. Can you give a real world example?
Look at how a modern build system (like qbs) organizes the build. It builds a declarative object graph describing the project and maps that to a dependency graph where each node can be a relatively complex object ("compile C++ file X using flags Y" or "link LargeSetOfFiles") annotated with modification data (like input file hashes). (Then it compares the dependency graph to what is found on the system and creates a list of commands to execute in order to bring whatever is on the system to the desired state, i.e. create an up to date build).