Teemperor wrote: FWIW, we should also fix this in the *BSD equivalents too, but for this we should somehow refactor this code out. I'll do that is as follow-up PR as that's a bit more complicated. https://github.com/llvm/llvm-project/pull/204109