Re: [PATCH v2 0/3] detect-compiler: clang updates
- From
Carlo Arenas <carenas@gmail.com>
- Date
- Aug 8, 2021, 00:30 UTC
- Message-ID
- <CAPUEsph1ZqE9KtT7ooJEa=jURq+=cG78MXwPxahb7f0YXYHL7g@mail.gmail.com>
- In-Reply-To
- <YQ6bTm6DxeJLhmeA@coredump.intra.peff.net>
On Sat, Aug 7, 2021 at 7:40 AM Jeff King <peff@peff.net> wrote:
Show 5 quoted lines
> 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.
uses Xcode 7.3 (based on clang 3.8) and either does support that flag or ignores it silently
https://www.travis-ci.com/github/carenas/git/builds/234772346
the same was observed with Xcode 8
both error later and fail to build because of a valid (but harmless) -Wformat-extra-args warning that doesn't trigger in later versions
Carlo