[CMake] Teach the build system to codesign built products
authorJustin Bogner <mail@justinbogner.com>
Tue, 10 Jul 2018 17:32:48 +0000 (17:32 +0000)
committerJustin Bogner <mail@justinbogner.com>
Tue, 10 Jul 2018 17:32:48 +0000 (17:32 +0000)
commit8fa2608493e200c54fe5887c84ba4415ab6b5eff
treea970f659d39fb27e7a78e1fa171e8853445ed175
parent2ad2c18b82dfda08a53917894a892d0246f5ed3c
[CMake] Teach the build system to codesign built products

Automatically codesign all executables and dynamic libraries if a
codesigning identity is given (via LLVM_CODESIGNING_IDENTITY). This
option is darwin only for now.

Also update platforms/iOS.cmake to pick up the right versions of
codesign and codesign_allocate.

llvm-svn: 336708
llvm/CMakeLists.txt
llvm/cmake/modules/AddLLVM.cmake
llvm/cmake/platforms/iOS.cmake