[libc-commits] [libc] [libc] Disable LlvmLibcTimespecGet.Monotonic for baremetal targets (PR #152290)
via libc-commits
libc-commits at lists.llvm.org
Wed Aug 6 08:40:44 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")
----------------
lntue wrote:
I think this should be moved to https://github.com/llvm/llvm-project/blob/main/libc/cmake/modules/LLVMLibCCompileOptionRules.cmake#L126
so that this macro definition can be accessed everywhere similar to other OS.
and remove the extra `COMPILE_OPTIONS` in this test.
https://github.com/llvm/llvm-project/pull/152290
More information about the libc-commits
mailing list