summaryrefslogtreecommitdiff
path: root/llvm/examples/ModuleMaker/ModuleMaker.cpp
diff options
context:
space:
mode:
authorHafiz Abid Qadeer <abidh@codesourcery.com>2020-10-05 17:28:25 -0400
committerTobias Hieta <tobias@plex.tv>2021-02-01 14:08:48 +0100
commit470bc83efffe3e4b6a5a00ec47069a972b7db94d (patch)
tree9669af5cf60119990e254e258e4134f8eca92e74 /llvm/examples/ModuleMaker/ModuleMaker.cpp
parentbb798f2a85a50991ed05aa10d4146f5855d9b24f (diff)
downloadllvm-470bc83efffe3e4b6a5a00ec47069a972b7db94d.tar.gz
[libc++] Check _LIBCPP_USE_CLOCK_GETTIME before using clock_gettime
The clock_gettime function is available when _POSIX_TIMERS is defined. We check for this and set _LIBCPP_USE_CLOCK_GETTIME accordingly since 59b3102739c. But check for _LIBCPP_USE_CLOCK_GETTIME was removed in babd3aefc91. As a result, code is now trying to use clock_gettime even on platforms where it is not available and it is causing build failure with newlib. This patch restores the checks to fix this. Differential Revision: https://reviews.llvm.org/D88825
Diffstat (limited to 'llvm/examples/ModuleMaker/ModuleMaker.cpp')
0 files changed, 0 insertions, 0 deletions