Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pythongh-128902: Fix check for fallthrough attribute support (python#…
…128903) Clang versions prior to 10 (which corresponds to Apple Clang 12) do not support the GCC extension syntax __attribute__((fallthrough)), but do evaluate __has_attribute(fallthrough) to 1 because they support the C++11 style syntax [[fallthrough]]. The only way to tell if the GCC style syntax is supported is thus to check the clang version. Ref: llvm/llvm-project@1e0affb
- Loading branch information