[PATCH] D64942: [cmake] Only run llvm-codesign if targetting apple on an apple host
    Nathan Lanza via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Jul 18 14:11:48 PDT 2019
    
    
  
lanza updated this revision to Diff 210670.
lanza added a comment.
rebase
Repository:
  rL LLVM
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D64942/new/
https://reviews.llvm.org/D64942
Files:
  cmake/modules/AddLLVM.cmake
Index: cmake/modules/AddLLVM.cmake
===================================================================
--- cmake/modules/AddLLVM.cmake
+++ cmake/modules/AddLLVM.cmake
@@ -1682,7 +1682,7 @@
         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()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64942.210670.patch
Type: text/x-patch
Size: 437 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190718/a4d1aa33/attachment.bin>
    
    
More information about the llvm-commits
mailing list