[libcxx-commits] [libcxx] b5a9f9f - [libc++] Make sure we use __ulock on Apple platforms

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 7 14:15:39 PDT 2023


Author: Louis Dionne
Date: 2023-07-07T17:15:22-04:00
New Revision: b5a9f9f6dc06095c399701de2c6ca976b40bb09c

URL: https://github.com/llvm/llvm-project/commit/b5a9f9f6dc06095c399701de2c6ca976b40bb09c
DIFF: https://github.com/llvm/llvm-project/commit/b5a9f9f6dc06095c399701de2c6ca976b40bb09c.diff

LOG: [libc++] Make sure we use __ulock on Apple platforms

We forgot to include the header, which means that _LIBCPP_USE_ULOCK was
always undefined and we'd always use the fallback. Note that this doesn't
seem to fix https://github.com/llvm/llvm-project/issues/63737.

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

Added: 
    

Modified: 
    libcxx/src/atomic.cpp

Removed: 
    


################################################################################
diff  --git a/libcxx/src/atomic.cpp b/libcxx/src/atomic.cpp
index 4e63a72c0ec3ed..a55249a15c2170 100644
--- a/libcxx/src/atomic.cpp
+++ b/libcxx/src/atomic.cpp
@@ -15,6 +15,8 @@
 #include <functional>
 #include <thread>
 
+#include "include/apple_availability.h"
+
 #ifdef __linux__
 
 #include <unistd.h>


        


More information about the libcxx-commits mailing list