[PATCH] D112849: [llvm] Disable xar on macOS 12.0 and later
Jonas Devlieghere via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 29 15:11:05 PDT 2021
JDevlieghere updated this revision to Diff 383511.
JDevlieghere added a comment.
Print a status message about the deprecation of the xar file format and corresponding cmake variable.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D112849/new/
https://reviews.llvm.org/D112849
Files:
llvm/cmake/config-ix.cmake
Index: llvm/cmake/config-ix.cmake
===================================================================
--- llvm/cmake/config-ix.cmake
+++ llvm/cmake/config-ix.cmake
@@ -213,7 +213,13 @@
check_library_exists(xar xar_open "" LLVM_HAVE_LIBXAR)
if(LLVM_HAVE_LIBXAR)
- set(XAR_LIB xar)
+ message(STATUS "The xar file format has been deprecated: LLVM_HAVE_LIBXAR has might be removed in the future.")
+ # The xar file format has been deprecated since macOS 12.0.
+ if (CMAKE_OSX_DEPLOYMENT_TARGET VERSION_GREATER_EQUAL 12)
+ set(LLVM_HAVE_LIBXAR 0)
+ else()
+ set(XAR_LIB xar)
+ endif()
endif()
# function checks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112849.383511.patch
Type: text/x-patch
Size: 626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211029/7c91ef41/attachment.bin>
More information about the llvm-commits
mailing list