From 1c925ab11c4da72d928557aa81c7561e02322fbf Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Fri, 12 Jul 2019 16:06:11 +0200 Subject: [PATCH] [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... --- 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 77f3f54bd8819..41c28264e812e 100644 --- a/llvm/lib/Support/Unix/Path.inc +++ b/llvm/lib/Support/Unix/Path.inc @@ -1353,7 +1353,7 @@ namespace fs { /// implementation. std::error_code copy_file(const Twine &From, const Twine &To) { uint32_t Flag = COPYFILE_DATA; -#if __has_builtin(__builtin_available) && defined(COPYFILE_CLONE) +#if 0 && __has_builtin(__builtin_available) && defined(COPYFILE_CLONE) if (__builtin_available(macos 10.12, *)) { bool IsSymlink; if (std::error_code Error = is_symlink_file(From, IsSymlink))