[libc-commits] [libc] [libc] Add definitions to embedded AArch32/AArch64 (PR #142597)
via libc-commits
libc-commits at lists.llvm.org
Tue Jun 3 09:11:48 PDT 2025
================
@@ -5,8 +5,12 @@
#include "gpu/time-macros.h"
#elif defined(__linux__)
#include "linux/time-macros.h"
+#elif defined(__ELF__)
----------------
lntue wrote:
Since `CLOCKS_PER_SEC` is used unconditionally below, can you add a default value for it:
```
#elif defined(__ELF__)
#include "baremetal/time-macros.h"
#else
#define CLOCKS_PER_SEC 1000000
#endif
```
https://github.com/llvm/llvm-project/pull/142597
More information about the libc-commits
mailing list