Skip to content

Commit d43049b

Browse files
committed
[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...
1 parent 5c68c46 commit d43049b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Support/Unix/Path.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ namespace fs {
14761476
std::error_code copy_file(const Twine &From, const Twine &To) {
14771477
std::string FromS = From.str();
14781478
std::string ToS = To.str();
1479-
#if __has_builtin(__builtin_available)
1479+
#if 0 && __has_builtin(__builtin_available)
14801480
if (__builtin_available(macos 10.12, *)) {
14811481
// Optimistically try to use clonefile() and handle errors, rather than
14821482
// calling stat() to see if it'll work.

0 commit comments

Comments
 (0)