[rust] Comment out __builtin_available() use (#21)

__builtin_available() pulls in __isOSVersionAtLeast() from
compiler-rt. Comment it out so we don't have to figure out how
to pull in this symbol...
This commit is contained in:
Nikita Popov 2019-07-12 16:06:11 +02:00 committed by Nikita Popov
parent 405217ea31
commit 76b1dfdd09

View file

@ -1476,7 +1476,7 @@ namespace fs {
std::error_code copy_file(const Twine &From, const Twine &To) {
std::string FromS = From.str();
std::string ToS = To.str();
#if __has_builtin(__builtin_available)
#if 0 && __has_builtin(__builtin_available)
if (__builtin_available(macos 10.12, *)) {
// Optimistically try to use clonefile() and handle errors, rather than
// calling stat() to see if it'll work.