HomePhabricator

Fix cmake check for futimens when deploying to earlier macOS releases.

Description

Fix cmake check for futimens when deploying to earlier macOS releases.

macOS 10.13 added a new API (futimens). This API is only available on macOS 10.13
and later, but the cmake check we have in place only tests if the symbol is
present and ignores the availability attribute. Luckily we have new warning for
this and by making this warning an error the cmake check will return the correct
result.

See also rdar://problem/33992750.

Differential Revision: https://reviews.llvm.org/D37027

Details

Committed
ributzkaAug 28 2017, 4:04 PM
Differential Revision
D37027: Fix cmake check for futimens when deploying to earlier macOS releases.
Parents
rL311948: Remove an unnecessary const_cast.
Branches
Unknown
Tags
Unknown