It is actually contained in my variant of a cursed entry (the whole thing is cursed, not that part specifically) What's the most cursed Zig you can write? - #16 by Sze :
You also could use an actual .c or .h file that contains similar code, I originally saw somebody turn it into a single expr .root_source_file = b.addWriteFiles().add(...) that also works, but I don’t remember where I saw it.
.c
.h
.root_source_file = b.addWriteFiles().add(...)