[libc-commits] [libc] [libc] Mutex implementation for single-threaded baremetal (PR #145358)
William Huynh via libc-commits
libc-commits at lists.llvm.org
Tue Jul 29 01:22:48 PDT 2025
================
@@ -29,4 +29,12 @@
#define LIBC_TARGET_OS_IS_FUCHSIA
#endif
+#if !defined(LIBC_TARGET_OS_IS_FREEBSD) && \
+ !defined(LIBC_TARGET_OS_IS_ANDROID) && \
+ !defined(LIBC_TARGET_OS_IS_LINUX) && \
+ !defined(LIBC_TARGET_OS_IS_WINDOWS) && \
+ !defined(LIBC_TARGET_OS_IS_FUCHSIA) && defined(__ELF__)
+#define LIBC_TARGET_OS_IS_BAREMETAL
+#endif
----------------
saturn691 wrote:
Ok, I'll submit another PR to fix this, we can discuss that over there
https://github.com/llvm/llvm-project/pull/145358
More information about the libc-commits
mailing list