Re:Show HN: My C compiler compiled itself
by yjftsjthsd-h on Wednesday December 04, 2024 @01:44AM
(#42314982)
> Have a step that takes the SHA256 or similar of $CC, make that a dependency.
Careful, one more step and we'll start recreating nix in Makefiles;)
(Wait, could we? Should we?)
Or potentially just specify the path to $CC itself as dependency? Presumably, if the C compiler changes, the timestamp of its executable does too. (Bad if it goes backwards, though.)