Skip to content

Commit

Permalink
Revert "[rust] Comment out __builtin_available() use (rust-lang#21)"
Browse files Browse the repository at this point in the history
This reverts commit 0be5954.
  • Loading branch information
DianQK authored and chenzhuoyu committed Nov 30, 2024
1 parent 6c29f7f commit 91dbec1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Support/Unix/Path.inc
Original file line number Diff line number Diff line change
@@ -1491,7 +1491,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 0 && __has_builtin(__builtin_available)
#if __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.

0 comments on commit 91dbec1

Please sign in to comment.