[llvm] r362248 - [CMake] Feed BUNDLE_PATH through llvm target wrappers
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Fri May 31 10:40:49 PDT 2019
Author: cbieneman
Date: Fri May 31 10:40:49 2019
New Revision: 362248
URL: http://llvm.org/viewvc/llvm-project?rev=362248&view=rev
Log:
[CMake] Feed BUNDLE_PATH through llvm target wrappers
This feeds the new llvm_codsign BUNDLE_PATH option through from the llvm target wrapper functions, so that you can specify the BUNDLE_PATH on the target's codesign.
Modified:
llvm/trunk/cmake/modules/AddLLVM.cmake
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=362248&r1=362247&r2=362248&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Fri May 31 10:40:49 2019
@@ -390,7 +390,7 @@ endfunction(set_windows_version_resource
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;ENTITLEMENTS"
+ "OUTPUT_NAME;PLUGIN_TOOL;ENTITLEMENTS;BUNDLE_PATH"
"ADDITIONAL_HEADERS;DEPENDS;LINK_COMPONENTS;LINK_LIBS;OBJLIBS"
${ARGN})
list(APPEND LLVM_COMMON_DEPENDS ${ARG_DEPENDS})
@@ -594,7 +594,7 @@ function(llvm_add_library name)
if(ARG_SHARED OR ARG_MODULE)
llvm_externalize_debuginfo(${name})
- llvm_codesign(${name} ENTITLEMENTS ${ARG_ENTITLEMENTS})
+ llvm_codesign(${name} ENTITLEMENTS ${ARG_ENTITLEMENTS} BUNDLE_PATH ${ARG_BUNDLE_PATH})
endif()
# clang and newer versions of ninja use high-resolutions timestamps,
# but older versions of libtool on Darwin don't, so the archive will
@@ -716,7 +716,7 @@ endmacro(add_llvm_library name)
macro(add_llvm_executable name)
cmake_parse_arguments(ARG
"DISABLE_LLVM_LINK_LLVM_DYLIB;IGNORE_EXTERNALIZE_DEBUGINFO;NO_INSTALL_RPATH"
- "ENTITLEMENTS"
+ "ENTITLEMENTS;BUNDLE_PATH"
"DEPENDS"
${ARGN})
@@ -798,7 +798,7 @@ macro(add_llvm_executable name)
target_link_libraries(${name} PRIVATE ${LLVM_PTHREAD_LIB})
endif()
- llvm_codesign(${name} ENTITLEMENTS ${ARG_ENTITLEMENTS})
+ llvm_codesign(${name} ENTITLEMENTS ${ARG_ENTITLEMENTS} BUNDLE_PATH ${ARG_BUNDLE_PATH})
endmacro(add_llvm_executable name)
function(export_executable_symbols target)
More information about the llvm-commits
mailing list