[all-commits] [llvm/llvm-project] 4b8db1: [llvm][macos] Fix usage of std::shared_mutex on ol...

Tobias Hieta via All-commits all-commits at lists.llvm.org
Fri Aug 5 12:45:35 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4b8db17c32e04a1fe17440a6fb80aa96f31ff068
      https://github.com/llvm/llvm-project/commit/4b8db17c32e04a1fe17440a6fb80aa96f31ff068
  Author: Tobias Hieta <tobias at plex.tv>
  Date:   2022-08-05 (Fri, 05 Aug 2022)

  Changed paths:
    M llvm/include/llvm/Support/RWMutex.h

  Log Message:
  -----------
  [llvm][macos] Fix usage of std::shared_mutex on old macOS SDK versions

When setting CMAKE_CXX_STANDARD to 17 and targeting a macOS version
under 10.12 the ifdefs would try to use std::shared_mutex because
the of the C++ standard. This should also check the targeted SDK.

See discussion in: https://reviews.llvm.org/D130689

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D131063




More information about the All-commits mailing list