darwin: use clock_gettime in macOS 10.12#1073
Conversation
|
Looks fine to me, but why is it better? |
|
On a somewhat similar note this should cause failures for a binary compiled on AIX 7.1 and run on lower versions |
|
More POSIX, moar better! On Sep 28, 2016 19:08, "Fedor Indutny" notifications@github.com wrote:
|
|
@saghul got it, but really... what's the benefit of this? |
indutny
left a comment
There was a problem hiding this comment.
LGTM, let's land it. On a second thought we may get rid of the old implementation eventually, which will lead to a cleaner code here. 👍
|
That was my main idea. Eventually most BSDs and Darwin would share the We can land this on master if anyone really feels strongly about it. Also, it would be nice to benchmark it, but since we use uv_hrtime for On Sep 28, 2016 23:17, "Fedor Indutny" notifications@github.com wrote: @indutny approved this pull request. LGTM, let's land it. On a second thought we may get rid of the old — |
PR-URL: #1073 Reviewed-By: Fedor Indutny <fedor@indutny.com> Reviewed-By: Imran Iqbal <imran@imraniqbal.org>
|
Oops, this one fell through the cracks. Landed in f8d4805. |
|
I'm running into problems with the 1.10.2 release that just got cut, and I think it's related to this change. I'm running OS X 10.11.6, which shouldn't be effected by this PR. However, I'm getting the following error, even after Note that it's saying libuv was built for 10.12. |
|
I think I am encountering this problem after recently updating xcode: http://stackoverflow.com/questions/39224905/how-do-i-install-xcode-8-without-updating-macos EDIT: After updating to 10.12, everything is fine again. |
|
@cjihrig Can you paste the command line that was executed? (make V=1) |
|
Sorry. I have since updated to 10.12 and recompiled. |
This reverts commit f8d4805087944cb8543d98109f5f83f4938eb4b5, which causes run-time link errors when compiled with macOS 10.12 SDK, but run on 10.11 or earlier. Refs: libuv/libuv#1073 PR-URL: libuv/libuv#1202 Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Looks like macOS Sierra has some nice additions :-)
Potential caveat: a binary compiled on 10.12 will not run on earlier systems. Since we already have some OSX versions checks in place I thought that's ok.
R= @libuv/collaborators and explicit ping to the in-house OSX expert: @indutny