When a generator is used with depfiles support and preserve_path_from is being used, the chosen depfile names are not guaranteed to be unique. This can lead to all kinds of fun issues like corrupted depfiles, missing rebuilds, ...
For a moment I thought the problem was me using @PLAINNAME@, but afaict there really is no alternative, as neither @OUTPUT@ nor subdirectories are supported.
When a generator is used with depfiles support and preserve_path_from is being used, the chosen depfile names are not guaranteed to be unique. This can lead to all kinds of fun issues like corrupted depfiles, missing rebuilds, ...
where
a/test_file
andb/test_file
are just empty files.With meson a0ff14551 (not a very recent bug though), this ends up with the generator targets using the same depfile:
Obviously the depfiles used clash. Not good.
For a moment I thought the problem was me using
@PLAINNAME@
, but afaict there really is no alternative, as neither@OUTPUT@
nor subdirectories are supported.