diff options
| author | Nathan Lanza <nathan@lanza.io> | 2019-07-18 21:14:26 +0000 |
|---|---|---|
| committer | Nathan Lanza <nathan@lanza.io> | 2019-07-18 21:14:26 +0000 |
| commit | 1a81d54c77b0dccf07906fb166bfaca53935be8a (patch) | |
| tree | 6c6d0b93cd6832c2a71137359744c083c0406d53 /llvm/cmake/modules/AddLLVM.cmake | |
| parent | 68f3fc2d91660f474cdb74d2f4e5f18a708d8e00 (diff) | |
| download | bcm5719-llvm-1a81d54c77b0dccf07906fb166bfaca53935be8a.tar.gz bcm5719-llvm-1a81d54c77b0dccf07906fb166bfaca53935be8a.zip | |
[cmake] Only run llvm-codesign if targetting apple on an apple host
Summary:
Other platforms don't have the capability to perform llvm_codesign
step. If LLVM_CODESIGNING_IDENTITY is set then this chunk of code would
attempt to codesign if the target was Apple. But when cross compiling
to Darwin from Linux, for example, this step would fail. So test if the
host is Apple as well.
Subscribers: mgorny, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D64942
llvm-svn: 366498
Diffstat (limited to 'llvm/cmake/modules/AddLLVM.cmake')
| -rw-r--r-- | llvm/cmake/modules/AddLLVM.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake index 619e986b8aa..a05f366d6e6 100644 --- a/llvm/cmake/modules/AddLLVM.cmake +++ b/llvm/cmake/modules/AddLLVM.cmake @@ -1682,7 +1682,7 @@ function(llvm_codesign name) XCODE_ATTRIBUTE_CODE_SIGN_ENTITLEMENTS ${ARG_ENTITLEMENTS} ) endif() - elseif(APPLE) + elseif(APPLE AND CMAKE_HOST_SYSTEM_NAME MATCHES APPLE) if(NOT CMAKE_CODESIGN) set(CMAKE_CODESIGN xcrun codesign) endif() |

