[PATCH] D65317: Fix macOS build after r358716

Yi Kong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 25 22:19:37 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL367084: Fix macOS build after r358716 (authored by kongyi, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D65317?vs=211877&id=211878#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65317/new/

https://reviews.llvm.org/D65317

Files:
  llvm/trunk/lib/Support/Unix/Path.inc


Index: llvm/trunk/lib/Support/Unix/Path.inc
===================================================================
--- llvm/trunk/lib/Support/Unix/Path.inc
+++ llvm/trunk/lib/Support/Unix/Path.inc
@@ -1203,7 +1203,7 @@
 /// implementation.
 std::error_code copy_file(const Twine &From, const Twine &To) {
   uint32_t Flag = COPYFILE_DATA;
-#if __has_builtin(__builtin_available)
+#if __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))


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65317.211878.patch
Type: text/x-patch
Size: 577 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190726/b14d90f1/attachment.bin>


More information about the llvm-commits mailing list