Skip to content

Commit 0d0b11a

Browse files
committed
Revert "[rust] Comment out __builtin_available() use (#21)"
This reverts commit 0be5954.
1 parent ccf4c38 commit 0d0b11a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Support/Unix/Path.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1491,7 +1491,7 @@ namespace fs {
14911491
std::error_code copy_file(const Twine &From, const Twine &To) {
14921492
std::string FromS = From.str();
14931493
std::string ToS = To.str();
1494-
#if 0 && __has_builtin(__builtin_available)
1494+
#if __has_builtin(__builtin_available)
14951495
if (__builtin_available(macos 10.12, *)) {
14961496
// Optimistically try to use clonefile() and handle errors, rather than
14971497
// calling stat() to see if it'll work.

0 commit comments

Comments
 (0)