3 ms·
I ported unexecute to GNU Make about ten years ago. I was working in a project in which a "make" would load a huge tree full of rules scattered in sub-makefile
by kazinator 10y ago
I ported unexecute to GNU Make about ten years ago.
I was working in a project in which a "make" would load a huge tree full of rules scattered in sub-makefiles, and take a full 30 seconds to evaluate before kicking off the first incremental build, really putting a damper on the edit-compile-test incremental cycle.
I got sick of this and so took the unexecute code from GNU Emacs into GNU Make, and added an option to do "make --dump" to dump an image after loading the rules. The restarted make image would kick off a build recipe almost instantly.
- VoiceOfWisdom 10y agoFAKE [1] the F# build tool uses a similar technique on the .net vm. [1] http://fsharp.github.io/FAKE/ http://fsharp.github.io/FAKE/
- TwoFx 10y agoDo you happen to have a link to the code in FAKE that implements this for .NET?
- evmar 10y agoIf you're ever in such a situation again, Ninja (https://ninja-build.org/ https://ninja-build.org/) was designed to have semantics similar to Make but load build files much faster (~seconds even for megabytes of build files).
- rurban 10y agoDo you have this patch somehere? Sounds useful, even if only for elf.