[libc-commits] [libc] [libc] Disable LlvmLibcTimespecGet.Monotonic for baremetal targets (PR #152290)

William Huynh via libc-commits libc-commits at lists.llvm.org
Mon Aug 11 03:11:09 PDT 2025


================
@@ -202,6 +202,10 @@ add_libc_unittest(
     libc.src.errno.errno
 )
 
+if(LIBC_TARGET_OS_IS_BAREMETAL)
+  list(APPEND options "-DLIBC_TARGET_OS_IS_BAREMETAL")
----------------
saturn691 wrote:

Some functions are implemented differently for baremetal e.g. timespec_get
Here it doesn't support `TIME_MONOTONIC`
https://github.com/llvm/llvm-project/blob/main/libc/src/time/baremetal/timespec_get.cpp#L19

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


More information about the libc-commits mailing list