Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[yugabyte#7994]: docdb: Fixed clang 10.* version detection
Summary: Commit yugabyte@306d57f added thread safety improvements in the Transaction class and disabled thread-safety annotations/analysis for clang versions prior to 11. But clang version was incorrectly detected if reported as `Apple LLVM version 10.0.1 (clang-1001.0.46.4)`. Therefore, for such compiler versions, thread-safety annotations were enabled and causing compilation failures, because thread safety analysis does not work well with unique_lock prior to clang 11. Fixed apple clang version detection in this case. Test Plan: Jenkins, check logs and make sure the version of apple clang was reported as `Apple LLVM version 10.*`, detected correctly as `10.*` and compilation has been successfully completed. Reviewers: dmitry, mbautin, bogdan Reviewed By: bogdan Subscribers: ybase Differential Revision: https://phabricator.dev.yugabyte.com/D11215
- Loading branch information