From 91dbec11b551287f12be9c4bb2d6bd33c817e863 Mon Sep 17 00:00:00 2001 From: DianQK Date: Wed, 14 Aug 2024 18:19:25 +0800 Subject: [PATCH] Revert "[rust] Comment out __builtin_available() use (#21)" This reverts commit 0be5954ac3fd5df6f0a749f37de8dca316b689b7. --- llvm/lib/Support/Unix/Path.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc index f36cc37ffb2afd..cf05db546e0214 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -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.