tractordev / wanix

Experimental, local-first, web-native, Unix-like development environment
https://wanix.sh
MIT License
206 stars 11 forks source link

compare modified time when running source commands with last compiled binary #66

Closed progrium closed 5 months ago

progrium commented 5 months ago

When you run a command that is a source directory, Wanix builds the program and caches it in /sys/bin. If it exists there it will run that binary next time. However, if you make changes to the source, it should recompile next time you run it. Currently it will just use the existing binary. We can do this by checking the creation time of the binary against the modified time of the source files, similar to make.