matricks / bam

Bam is a fast and flexible build system. Bam uses Lua to describe the build process. It's takes its inspiration for the script files from scons. While scons focuses on being 100% correct when building, bam makes a few sacrifices to acquire fast full and incremental build times.
http://matricks.github.com/bam
Other
146 stars 47 forks source link

debug-nodes tweaks #141

Closed mgmalind closed 3 years ago

mgmalind commented 4 years ago

*Sort jobs on the alphabetically first output, to be able to diff --debug-nodes outputs between changes and still se what is going on.

*Print the job prio

A bit of a hack, but I'll use it localy untill something better is implemented, apply or discard: *As a band-aid, print the output deps once for the job, and not per output, as they can't be very to read as is (like a link step with 1000 obj files and 4 outputs. (Drops output frpm 32 to 26MiB). Maybe the right solution would be to print all the "common" deps and parents first, and then the stuff isn't the same for all under each output. Deps are always the same, parents are usually but not allways. Not sure about the constraints, the jobs constraint should be the union of all, like deps?

mgmalind commented 3 years ago

I Added another thing to this. I change the sort to be case-insensitive first and then sensitive so things that change casing doesn't move to the other end of the output (it happens all the time on windows, depending on what cpps are parsed first, as the casing is all over the place).

https://github.com/mgmalind/bam/commit/c0f8ebea03fb6224c7a1e6bdbe9fd0121ca2290c