[all-commits] [llvm/llvm-project] edf943: [libcxx] Support for using timespec_get (#117362)
Petr Hosek via All-commits
all-commits at lists.llvm.org
Tue Dec 17 08:17:19 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: edf9439e00971b55bae19e40ef6a8e132645a56a
https://github.com/llvm/llvm-project/commit/edf9439e00971b55bae19e40ef6a8e132645a56a
Author: Petr Hosek <phosek at google.com>
Date: 2024-12-17 (Tue, 17 Dec 2024)
Changed paths:
M clang/cmake/caches/Fuchsia-stage2.cmake
M libcxx/src/chrono.cpp
M libcxx/src/filesystem/filesystem_clock.cpp
Log Message:
-----------
[libcxx] Support for using timespec_get (#117362)
clock_gettime is a POSIX API that may not be available on platforms like
baremetal; timespec_get is the C11 equivalent. This change adds support
for using timespec_get instead of clock_gettime to improve compatibility
with non-POSIX platforms. For now, this is only enabled with LLVM libc
which implemented timespec_get in #116102, but in the future this can be
expanded to other platforms.
Related to #84879.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list