arichardson added a comment. Alternatively, the checks could be changed to also handle OSMajorVersion == 0 and translate that to 10. This seems to be what NetBSD.cpp does. Darwin.cpp also infers the version from the host when running on macos.
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D77776/new/ https://reviews.llvm.org/D77776 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits