diff options
author | Sam Bingner <sam@bingner.com> | 2019-12-19 18:03:42 -1000 |
---|---|---|
committer | Sam Bingner <sam@bingner.com> | 2019-12-19 18:03:42 -1000 |
commit | e9c5d02e14b87f22c28605169df783feb8de7898 (patch) | |
tree | 3212a5852105216c3d7bb5bf2535bb24d4c41245 /data/_llvm10/mutex-availability.diff | |
parent | be093a95b6fc60b3d5544de115e8b87282969be4 (diff) |
llvm with libtapi supporting v3 in progress
Diffstat (limited to 'data/_llvm10/mutex-availability.diff')
-rw-r--r-- | data/_llvm10/mutex-availability.diff | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/data/_llvm10/mutex-availability.diff b/data/_llvm10/mutex-availability.diff new file mode 100644 index 000000000..f3fb57074 --- /dev/null +++ b/data/_llvm10/mutex-availability.diff @@ -0,0 +1,34 @@ +diff -ur llvm-project-apple-stable-20191106/llvm/include/llvm/Support/RWMutex.h llvm-project-apple-stable-20191106+iOS/llvm/include/llvm/Support/RWMutex.h +--- llvm-project-apple-stable-20191106/llvm/include/llvm/Support/RWMutex.h 2019-12-03 19:28:47.000000000 -1000 ++++ llvm-project-apple-stable-20191106+iOS/llvm/include/llvm/Support/RWMutex.h 2019-12-04 13:58:07.000000000 -1000 +@@ -19,12 +19,29 @@ + #include <mutex> + #include <shared_mutex> + ++#if defined(__APPLE__) + // std::shared_timed_mutex is only availble on macOS 10.12 and later. +-#if defined(__APPLE__) && defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) ++#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) + #if __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101200 + #define LLVM_USE_RW_MUTEX_IMPL + #endif ++// std::shared_timed_mutex is only availble on iOS 10 and later. ++#elif defined(__ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__) ++#if __ENVIRONMENT_IPHONE_OS_VERSION_MIN_REQUIRED__ < 100000 ++#define LLVM_USE_RW_MUTEX_IMPL ++#endif ++// std::shared_timed_mutex is only availble on tvOS 10 and later. ++#elif defined(__ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__) ++#if __ENVIRONMENT_TV_OS_VERSION_MIN_REQUIRED__ < 100000 ++#define LLVM_USE_RW_MUTEX_IMPL ++#endif ++// std::shared_timed_mutex is only availble on watchOS 3 and later. ++#elif defined(__ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__) ++#if __ENVIRONMENT_WATCH_OS_VERSION_MIN_REQUIRED__ < 30000 ++#define LLVM_USE_RW_MUTEX_IMPL ++#endif + #endif ++#endif // __APPLE__ + + namespace llvm { + namespace sys { |