clock_gettime support on OS X is a nightmare
Darwin did not support clock_gettime
until Sierra, which added it. Unfortunately, the existing MACOSX_DEPLOYMENT_TARGET
environment variable has no effect on its availability, so binary distributions compiled on Sierra will be incompatible with older releases.
We have three options for dealing with this,
- Disable
clock_gettime
support in our OS X binary distributions (e.g../configure ac_cv_func_clock_gettime=no
) - Produce one binary distribution for Sierra and another for previous releases
- Making it possible to change timer backends at runtime.
At the moment I'm leaning towards (1). (2) is another possibility. (3) seems like a road to madness.
Trac metadata
Trac field | Value |
---|---|
Version | 8.0.1 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | high |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |