[llvm-bugs] [Bug 38959] New: use of clock_gettime() blocks build of xray on macOS 10.11 and less
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Sep 15 09:34:42 PDT 2018
https://bugs.llvm.org/show_bug.cgi?id=38959
Bug ID: 38959
Summary: use of clock_gettime() blocks build of xray on macOS
10.11 and less
Product: XRay
Version: unspecified
Hardware: Macintosh
OS: MacOS X
Status: NEW
Severity: normal
Priority: P
Component: Runtime
Assignee: dberris at google.com
Reporter: ken.cunningham.webuse at gmail.com
CC: llvm-bugs at lists.llvm.org
clock_gettime() was added in macOS 10.12.
<https://stackoverflow.com/questions/5167269/clock-gettime-alternative-in-mac-os-x>
clock_gettime() is used in several instances in the xray runtime library, and
CLOCK_REALTIME is used but undefined on 10.11 and earlier, and so the build
fails on systems without this function and definition.
A possible replacement function is used in MacPorts for a similar failure in
other software:
<https://github.com/macports/macports-ports/blob/master/graphics/cogl/files/patch-clock_gettime.diff>
Another clock_gettime() replacement function with an MIT license is noted here
<https://gist.github.com/alfwatt/3588c5aa1f7a1ef7a3bb>
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20180915/728e7045/attachment-0001.html>
More information about the llvm-bugs
mailing list