On Sat, Aug 07, 2021 at 05:36:57PM +0200, Ævar Arnfjörð Bjarmason wrote: > > Hmm, now I'm really confused, though. Is that really clang 12 (for which > > there is no 12.0.5; 12.0.1 is the latest version, shipped in July)? Or > > is it XCode 12, shipping with LLVM 11, according to the table in: > > > > https://en.wikipedia.org/wiki/Xcode#Xcode_11.x_-_13.x_(since_SwiftUI_framework) > > > > (sorry, there are actually _two_ tables with that same anchor on the > > page; the one you want is the second one, under "Toolchain versions"). > > > > The distinction does not matter for our script (where we only care about > > "clang4" and up). I guess the most relevant test would be to get XCode > > 8.x and see what it says. I expect it to claim "clang 8.1.0" or similar, > > but actually be clang-3. And therefore not support > > -Wtautological-constant-out-of-range-compare. > > > > If we can't get easily get hold of such a platform, then maybe that is a > > good indication that this conversation is too academic for now, and we > > should wait until somebody wants to add a more recent version-specifier > > to config.mak.dev. ;) > > I think it's clang 12.0.5, and Apple just takes upstream versions and > increments them, e.g. I found this: > https://gist.github.com/yamaya/2924292 > > So you can presumably rely on it for having clang 12 features, and we'd > only ever care about the clang_major... >From the reading I've done, I'm unconvinced that this is _actually_ clang 12, and they aren't simply doing funky things with the version numbers. But since we lack an easy test of how the different versions behave (even my suggested clang4 test turned out not to be robust!), it probably doesn't matter much either way. -Peff