--watch
does not pick up sub-Compilation file system inputs such as compiler_rt, glibc, or musl source files
#20601
Labels
Milestone
Extracted from #20580.
Zig version:
0.14.0-dev.283+1d20ff11d
Steps to reproduce:
In an empty directory:
Then go make a change to
lib/zig/compiler_rt.zig
in the lib directory corresponding to the zig compiler you are using.The file is not being watched; no changes are picked up. Instead, changes to compiler_rt and other sub-compilations should be noticed and trigger a recompilation.
The mechanism behind this is in
Compilation.update
:zig/src/Compilation.zig
Line 2013 in 1d20ff1
In this function:
comp.file_system_inputs
is modifiedzig/src/Compilation.zig
Lines 2116 to 2121 in 1d20ff1
In a future enhancement, the build runner should pass in the set of modified file system inputs to the update() function directly, so that the fstat calls are avoided. That should be a follow-up issue when closing this one.
The text was updated successfully, but these errors were encountered: