On 6/14/22 23:51, Jeffrey Walton wrote:
I think you should use __apple_build_version__ to differentiate between Apple Clang and LLVM Clang.
As near as I can make out, support for -Wvla was added in Clang 2.8, which I hope is old enough that we need not worry about Apple messing with Clang version numbers. If not, someone with access to old Apple releases would have to tell us.
What a mess this stuff is. Maybe it would be simpler to disable all -W options by default under Clang.