[PATCH] D57334: [CMake] Accept ENTITLEMENTS in llvm_add_library()
Stefan Gränitz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 28 08:41:13 PST 2019
sgraenitz created this revision.
sgraenitz added a reviewer: beanz.
Herald added subscribers: llvm-commits, mgorny.
We added support for code signing entitlements in add_llvm_executable() with D54443 <https://reviews.llvm.org/D54443>. In the future it would be useful to have this functionality available also for libraries.
Repository:
rL LLVM
https://reviews.llvm.org/D57334
Files:
cmake/modules/AddLLVM.cmake
Index: cmake/modules/AddLLVM.cmake
===================================================================
--- cmake/modules/AddLLVM.cmake
+++ cmake/modules/AddLLVM.cmake
@@ -380,7 +380,7 @@
function(llvm_add_library name)
cmake_parse_arguments(ARG
"MODULE;SHARED;STATIC;OBJECT;DISABLE_LLVM_LINK_LLVM_DYLIB;SONAME;NO_INSTALL_RPATH"
- "OUTPUT_NAME;PLUGIN_TOOL"
+ "OUTPUT_NAME;PLUGIN_TOOL;ENTITLEMENTS"
"ADDITIONAL_HEADERS;DEPENDS;LINK_COMPONENTS;LINK_LIBS;OBJLIBS"
${ARGN})
list(APPEND LLVM_COMMON_DEPENDS ${ARG_DEPENDS})
@@ -584,7 +584,7 @@
if(ARG_SHARED OR ARG_MODULE)
llvm_externalize_debuginfo(${name})
- llvm_codesign(${name})
+ llvm_codesign(${name} ENTITLEMENTS ${ARG_ENTITLEMENTS})
endif()
endfunction()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57334.183874.patch
Type: text/x-patch
Size: 757 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190128/4ad88611/attachment.bin>
More information about the llvm-commits
mailing list