Repository navigation
IC: don't rerun the config producer after a no-op nim.cfg save - #26686
Conversation
Change that instead. |
but then there is a window in which the precompiled config may be newer than the config (in nimbus up to 500 ms) and then the changes in that window are not picked up until the config is changed again. That window also exists on devel when there are config changes. This fix closes that window by updating the mtime at the end. The stamp file is not needed though; the comment for I think the issue I originally hit was the no-op config change, not the window race, though. |
|
Thanks for your hard work on this PR! Hint: codegen mm: orc; threads: on; opt: speed; options: -d:release |
Saving a nim.cfg without changing it made every later nim ic and nim track run start the nim icconfig producer again, until the content changed.
The precompiled config is written only when its content changes, so its mtime stayed older than the saved source, and sourcesChanged compared against that mtime. The driver now sets the config's mtime to when the producer started, after every producer run. That also catches a config source saved while the producer was running.
Split from #26494