On the surface, this looks like fine behavior. If you don't find anything to put in the file, don't write the file. However, this wreaks havoc on build systems because now whether or not a file is output at all depends on the contents of that file. If bindgen is told to output a file, it should output a file, even if that file is empty.
On the surface, this looks like fine behavior. If you don't find anything to put in the file, don't write the file. However, this wreaks havoc on build systems because now whether or not a file is output at all depends on the contents of that file. If bindgen is told to output a file, it should output a file, even if that file is empty.