diff options
author | Nico Weber <nicolasweber@gmx.de> | 2018-02-06 19:17:41 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2018-02-06 19:17:41 +0000 |
commit | 6ef990e9ce9ab7d3a2b055e53ff83236d01f43fa (patch) | |
tree | accdfd255946dabfedd6e57f097c0c7c088c1deb /lldb/packages/Python/lldbsuite/test | |
parent | a894201313cddd1102189db97eb2673e726b67bf (diff) | |
download | bcm5719-llvm-6ef990e9ce9ab7d3a2b055e53ff83236d01f43fa.tar.gz bcm5719-llvm-6ef990e9ce9ab7d3a2b055e53ff83236d01f43fa.zip |
Fix building libc++ with the macOS 10.13 SDK with -mmacosx-version-min=10.12 or lower.
The 10.13 SDK always defines utimensat() (with an availability(macosx=10.13) annotation)
and unconditionally defines UTIME_OMIT, so use the compile-time availability macros
on Apple platforms instead.
For people statically linking libc++, it might make sense to also provide an opt-in
option for using __builtin_available() to dynamically check for the OS version,
but for now let's do the smallest thing needed to unbreak the build.
Based on a patch by Eric Fiselier <eric@efcs.ca>: https://reviews.llvm.org/D34249
Fixes PR33469.
llvm-svn: 324385
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions