Closed jbikker closed 2 years ago
Good tip. I thought about this kind of optimization, but I don't know if it's a good idea to try to recreate the Makefile system in batch. ^^ I hesitate a lot, but I'm more inclined to rewrite the Build tool in python to make it more easily modifiable and functional on all OS. In the meantime, I will integrate a date time check as you suggest.
I added an option in the Build Tool CompileSkip
to skip compiling file if build data is newer than source
https://github.com/aoineko-fr/MSXgl/commit/39194dc00398387ea626754c4331bd20c6fcd275
There are many things that would be so much easier to do in Python... I'll look into it.
Hi,
I admire your great DOS batch file skills (seriously), but I managed to make an improvement, that makes SDCC skip files for which the compiled output is newer than the source file. This makes compiles instantaneous if only small changes were made, which helps me drink less coffee. Here is the relevant snippet:
Information from stackoverflow was used: https://stackoverflow.com/questions/1687014/how-do-i-compare-timestamps-of-files-in-a-batch-script https://stackoverflow.com/questions/14686330/how-do-i-make-a-windows-batch-script-completely-silent because I don't know much about batch files. ;)
Greets, Jacco.