compiler-rt-no-codesign.patch 793 B

12345678910111213141516171819202122
  1. Disable codesign for macosx cross-compile toolchain. Codesign only works on OSX.
  2. Index: cmake/Modules/AddCompilerRT.cmake
  3. ===================================================================
  4. --- a/compiler-rt/cmake/Modules/AddCompilerRT.cmake
  5. +++ b/compiler-rt/cmake/Modules/AddCompilerRT.cmake
  6. @@ -321,14 +321,6 @@
  7. set_target_properties(${libname} PROPERTIES IMPORT_PREFIX "")
  8. set_target_properties(${libname} PROPERTIES IMPORT_SUFFIX ".lib")
  9. endif()
  10. - if(APPLE)
  11. - # Ad-hoc sign the dylibs
  12. - add_custom_command(TARGET ${libname}
  13. - POST_BUILD
  14. - COMMAND codesign --sign - $<TARGET_FILE:${libname}>
  15. - WORKING_DIRECTORY ${COMPILER_RT_LIBRARY_OUTPUT_DIR}
  16. - )
  17. - endif()
  18. endif()
  19. set(parent_target_arg)