[libcxx-commits] [libcxx] [libc++] Provide flag for RUNTIMES_USE_LIBC=llvm-libc (PR #174967)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Thu Jan 8 06:47:19 PST 2026


================
@@ -32,7 +32,7 @@
 #  include <sys/time.h> // for gettimeofday and timeval
 #endif
 
-#if defined(__LLVM_LIBC__)
+#if _LIBCPP_LIBC_LLVM_LIBC
 #  define _LIBCPP_HAS_TIMESPEC_GET
 #endif
----------------
philnik777 wrote:

```suggestion
#define _LIBCPP_HAS_TIMESPEC_GET _LIBCPP_LIBC_LLVM_LIBC
```
Same below.

https://github.com/llvm/llvm-project/pull/174967


More information about the libcxx-commits mailing list