llvmPackages.compiler-rt: dedupe `codesign.patch` 7-12

found with fdupes

```
pkgs/development/compilers/llvm/8/compiler-rt/codesign.patch
pkgs/development/compilers/llvm/10/compiler-rt/codesign.patch
pkgs/development/compilers/llvm/12/compiler-rt/codesign.patch
pkgs/development/compilers/llvm/9/compiler-rt/codesign.patch
pkgs/development/compilers/llvm/7/compiler-rt/codesign.patch
pkgs/development/compilers/llvm/11/compiler-rt/codesign.patch
```

Artturin 079fa2f0 ac62f864

+6 -171
pkgs/development/compilers/llvm/10/compiler-rt/codesign.patch pkgs/development/compilers/llvm/common/compiler-rt/7-12-codesign.patch
+1 -1
pkgs/development/compilers/llvm/10/compiler-rt/default.nix
··· 55 outputs = [ "out" "dev" ]; 56 57 patches = [ 58 - ./codesign.patch # Revert compiler-rt commit that makes codesign mandatory 59 ./find-darwin-sdk-version.patch # don't test for macOS being >= 10.15 60 ./gnu-install-dirs.patch 61 ../../common/compiler-rt/libsanitizer-no-cyclades-11.patch
··· 55 outputs = [ "out" "dev" ]; 56 57 patches = [ 58 + ../../common/compiler-rt/7-12-codesign.patch # Revert compiler-rt commit that makes codesign mandatory 59 ./find-darwin-sdk-version.patch # don't test for macOS being >= 10.15 60 ./gnu-install-dirs.patch 61 ../../common/compiler-rt/libsanitizer-no-cyclades-11.patch
-33
pkgs/development/compilers/llvm/11/compiler-rt/codesign.patch
··· 1 - From 3dec5f3475a26aeb4678627795c4b67c6b7b4785 Mon Sep 17 00:00:00 2001 2 - From: Will Dietz <w@wdtz.org> 3 - Date: Tue, 19 Sep 2017 13:13:06 -0500 4 - Subject: [PATCH] remove codesign use on Apple, disable ios sim testing that 5 - needs it 6 - 7 - --- 8 - cmake/Modules/AddCompilerRT.cmake | 8 ------ 9 - test/asan/CMakeLists.txt | 52 --------------------------------------- 10 - test/tsan/CMakeLists.txt | 47 ----------------------------------- 11 - 3 files changed, 107 deletions(-) 12 - 13 - diff --git a/cmake/Modules/AddCompilerRT.cmake b/cmake/Modules/AddCompilerRT.cmake 14 - index bc5fb9ff7..b64eb4246 100644 15 - --- a/cmake/Modules/AddCompilerRT.cmake 16 - +++ b/cmake/Modules/AddCompilerRT.cmake 17 - @@ -210,14 +210,6 @@ function(add_compiler_rt_runtime name type) 18 - set_target_properties(${libname} PROPERTIES IMPORT_PREFIX "") 19 - set_target_properties(${libname} PROPERTIES IMPORT_SUFFIX ".lib") 20 - endif() 21 - - if(APPLE) 22 - - # Ad-hoc sign the dylibs 23 - - add_custom_command(TARGET ${libname} 24 - - POST_BUILD 25 - - COMMAND codesign --sign - $<TARGET_FILE:${libname}> 26 - - WORKING_DIRECTORY ${COMPILER_RT_LIBRARY_OUTPUT_DIR} 27 - - ) 28 - - endif() 29 - endif() 30 - install(TARGETS ${libname} 31 - ARCHIVE DESTINATION ${COMPILER_RT_LIBRARY_INSTALL_DIR} 32 - 2.14.1 33 -
···
+1 -1
pkgs/development/compilers/llvm/11/compiler-rt/default.nix
··· 56 outputs = [ "out" "dev" ]; 57 58 patches = [ 59 - ./codesign.patch # Revert compiler-rt commit that makes codesign mandatory 60 ./X86-support-extension.patch # Add support for i486 i586 i686 by reusing i386 config 61 ./gnu-install-dirs.patch 62 # ld-wrapper dislikes `-rpath-link //nix/store`, so we normalize away the
··· 56 outputs = [ "out" "dev" ]; 57 58 patches = [ 59 + ../../common/compiler-rt/7-12-codesign.patch # Revert compiler-rt commit that makes codesign mandatory 60 ./X86-support-extension.patch # Add support for i486 i586 i686 by reusing i386 config 61 ./gnu-install-dirs.patch 62 # ld-wrapper dislikes `-rpath-link //nix/store`, so we normalize away the
-33
pkgs/development/compilers/llvm/12/compiler-rt/codesign.patch
··· 1 - From 3dec5f3475a26aeb4678627795c4b67c6b7b4785 Mon Sep 17 00:00:00 2001 2 - From: Will Dietz <w@wdtz.org> 3 - Date: Tue, 19 Sep 2017 13:13:06 -0500 4 - Subject: [PATCH] remove codesign use on Apple, disable ios sim testing that 5 - needs it 6 - 7 - --- 8 - cmake/Modules/AddCompilerRT.cmake | 8 ------ 9 - test/asan/CMakeLists.txt | 52 --------------------------------------- 10 - test/tsan/CMakeLists.txt | 47 ----------------------------------- 11 - 3 files changed, 107 deletions(-) 12 - 13 - diff --git a/cmake/Modules/AddCompilerRT.cmake b/cmake/Modules/AddCompilerRT.cmake 14 - index bc5fb9ff7..b64eb4246 100644 15 - --- a/cmake/Modules/AddCompilerRT.cmake 16 - +++ b/cmake/Modules/AddCompilerRT.cmake 17 - @@ -210,14 +210,6 @@ function(add_compiler_rt_runtime name type) 18 - set_target_properties(${libname} PROPERTIES IMPORT_PREFIX "") 19 - set_target_properties(${libname} PROPERTIES IMPORT_SUFFIX ".lib") 20 - endif() 21 - - if(APPLE) 22 - - # Ad-hoc sign the dylibs 23 - - add_custom_command(TARGET ${libname} 24 - - POST_BUILD 25 - - COMMAND codesign --sign - $<TARGET_FILE:${libname}> 26 - - WORKING_DIRECTORY ${COMPILER_RT_LIBRARY_OUTPUT_DIR} 27 - - ) 28 - - endif() 29 - endif() 30 - install(TARGETS ${libname} 31 - ARCHIVE DESTINATION ${COMPILER_RT_LIBRARY_INSTALL_DIR} 32 - 2.14.1 33 -
···
+1 -1
pkgs/development/compilers/llvm/12/compiler-rt/default.nix
··· 57 outputs = [ "out" "dev" ]; 58 59 patches = [ 60 - ./codesign.patch # Revert compiler-rt commit that makes codesign mandatory 61 ./X86-support-extension.patch # Add support for i486 i586 i686 by reusing i386 config 62 ./gnu-install-dirs.patch 63 # ld-wrapper dislikes `-rpath-link //nix/store`, so we normalize away the
··· 57 outputs = [ "out" "dev" ]; 58 59 patches = [ 60 + ../../common/compiler-rt/7-12-codesign.patch # Revert compiler-rt commit that makes codesign mandatory 61 ./X86-support-extension.patch # Add support for i486 i586 i686 by reusing i386 config 62 ./gnu-install-dirs.patch 63 # ld-wrapper dislikes `-rpath-link //nix/store`, so we normalize away the
-33
pkgs/development/compilers/llvm/7/compiler-rt/codesign.patch
··· 1 - From 3dec5f3475a26aeb4678627795c4b67c6b7b4785 Mon Sep 17 00:00:00 2001 2 - From: Will Dietz <w@wdtz.org> 3 - Date: Tue, 19 Sep 2017 13:13:06 -0500 4 - Subject: [PATCH] remove codesign use on Apple, disable ios sim testing that 5 - needs it 6 - 7 - --- 8 - cmake/Modules/AddCompilerRT.cmake | 8 ------ 9 - test/asan/CMakeLists.txt | 52 --------------------------------------- 10 - test/tsan/CMakeLists.txt | 47 ----------------------------------- 11 - 3 files changed, 107 deletions(-) 12 - 13 - diff --git a/cmake/Modules/AddCompilerRT.cmake b/cmake/Modules/AddCompilerRT.cmake 14 - index bc5fb9ff7..b64eb4246 100644 15 - --- a/cmake/Modules/AddCompilerRT.cmake 16 - +++ b/cmake/Modules/AddCompilerRT.cmake 17 - @@ -210,14 +210,6 @@ function(add_compiler_rt_runtime name type) 18 - set_target_properties(${libname} PROPERTIES IMPORT_PREFIX "") 19 - set_target_properties(${libname} PROPERTIES IMPORT_SUFFIX ".lib") 20 - endif() 21 - - if(APPLE) 22 - - # Ad-hoc sign the dylibs 23 - - add_custom_command(TARGET ${libname} 24 - - POST_BUILD 25 - - COMMAND codesign --sign - $<TARGET_FILE:${libname}> 26 - - WORKING_DIRECTORY ${COMPILER_RT_LIBRARY_OUTPUT_DIR} 27 - - ) 28 - - endif() 29 - endif() 30 - install(TARGETS ${libname} 31 - ARCHIVE DESTINATION ${COMPILER_RT_LIBRARY_INSTALL_DIR} 32 - 2.14.1 33 -
···
+1 -1
pkgs/development/compilers/llvm/7/compiler-rt/default.nix
··· 56 patches = [ 57 # https://github.com/llvm/llvm-project/commit/947f9692440836dcb8d88b74b69dd379d85974ce 58 ../../common/compiler-rt/glibc.patch 59 - ./codesign.patch # Revert compiler-rt commit that makes codesign mandatory 60 ./gnu-install-dirs.patch 61 ../../common/compiler-rt/libsanitizer-no-cyclades-9.patch 62 ] ++ lib.optional (useLLVM) ./crtbegin-and-end.patch
··· 56 patches = [ 57 # https://github.com/llvm/llvm-project/commit/947f9692440836dcb8d88b74b69dd379d85974ce 58 ../../common/compiler-rt/glibc.patch 59 + ../../common/compiler-rt/7-12-codesign.patch # Revert compiler-rt commit that makes codesign mandatory 60 ./gnu-install-dirs.patch 61 ../../common/compiler-rt/libsanitizer-no-cyclades-9.patch 62 ] ++ lib.optional (useLLVM) ./crtbegin-and-end.patch
-33
pkgs/development/compilers/llvm/8/compiler-rt/codesign.patch
··· 1 - From 3dec5f3475a26aeb4678627795c4b67c6b7b4785 Mon Sep 17 00:00:00 2001 2 - From: Will Dietz <w@wdtz.org> 3 - Date: Tue, 19 Sep 2017 13:13:06 -0500 4 - Subject: [PATCH] remove codesign use on Apple, disable ios sim testing that 5 - needs it 6 - 7 - --- 8 - cmake/Modules/AddCompilerRT.cmake | 8 ------ 9 - test/asan/CMakeLists.txt | 52 --------------------------------------- 10 - test/tsan/CMakeLists.txt | 47 ----------------------------------- 11 - 3 files changed, 107 deletions(-) 12 - 13 - diff --git a/cmake/Modules/AddCompilerRT.cmake b/cmake/Modules/AddCompilerRT.cmake 14 - index bc5fb9ff7..b64eb4246 100644 15 - --- a/cmake/Modules/AddCompilerRT.cmake 16 - +++ b/cmake/Modules/AddCompilerRT.cmake 17 - @@ -210,14 +210,6 @@ function(add_compiler_rt_runtime name type) 18 - set_target_properties(${libname} PROPERTIES IMPORT_PREFIX "") 19 - set_target_properties(${libname} PROPERTIES IMPORT_SUFFIX ".lib") 20 - endif() 21 - - if(APPLE) 22 - - # Ad-hoc sign the dylibs 23 - - add_custom_command(TARGET ${libname} 24 - - POST_BUILD 25 - - COMMAND codesign --sign - $<TARGET_FILE:${libname}> 26 - - WORKING_DIRECTORY ${COMPILER_RT_LIBRARY_OUTPUT_DIR} 27 - - ) 28 - - endif() 29 - endif() 30 - install(TARGETS ${libname} 31 - ARCHIVE DESTINATION ${COMPILER_RT_LIBRARY_INSTALL_DIR} 32 - 2.14.1 33 -
···
+1 -1
pkgs/development/compilers/llvm/8/compiler-rt/default.nix
··· 56 patches = [ 57 # https://github.com/llvm/llvm-project/commit/947f9692440836dcb8d88b74b69dd379d85974ce 58 ../../common/compiler-rt/glibc.patch 59 - ./codesign.patch # Revert compiler-rt commit that makes codesign mandatory 60 ./gnu-install-dirs.patch 61 ../../common/compiler-rt/libsanitizer-no-cyclades-9.patch 62 ] ++ lib.optional (useLLVM) ./crtbegin-and-end.patch
··· 56 patches = [ 57 # https://github.com/llvm/llvm-project/commit/947f9692440836dcb8d88b74b69dd379d85974ce 58 ../../common/compiler-rt/glibc.patch 59 + ../../common/compiler-rt/7-12-codesign.patch # Revert compiler-rt commit that makes codesign mandatory 60 ./gnu-install-dirs.patch 61 ../../common/compiler-rt/libsanitizer-no-cyclades-9.patch 62 ] ++ lib.optional (useLLVM) ./crtbegin-and-end.patch
-33
pkgs/development/compilers/llvm/9/compiler-rt/codesign.patch
··· 1 - From 3dec5f3475a26aeb4678627795c4b67c6b7b4785 Mon Sep 17 00:00:00 2001 2 - From: Will Dietz <w@wdtz.org> 3 - Date: Tue, 19 Sep 2017 13:13:06 -0500 4 - Subject: [PATCH] remove codesign use on Apple, disable ios sim testing that 5 - needs it 6 - 7 - --- 8 - cmake/Modules/AddCompilerRT.cmake | 8 ------ 9 - test/asan/CMakeLists.txt | 52 --------------------------------------- 10 - test/tsan/CMakeLists.txt | 47 ----------------------------------- 11 - 3 files changed, 107 deletions(-) 12 - 13 - diff --git a/cmake/Modules/AddCompilerRT.cmake b/cmake/Modules/AddCompilerRT.cmake 14 - index bc5fb9ff7..b64eb4246 100644 15 - --- a/cmake/Modules/AddCompilerRT.cmake 16 - +++ b/cmake/Modules/AddCompilerRT.cmake 17 - @@ -210,14 +210,6 @@ function(add_compiler_rt_runtime name type) 18 - set_target_properties(${libname} PROPERTIES IMPORT_PREFIX "") 19 - set_target_properties(${libname} PROPERTIES IMPORT_SUFFIX ".lib") 20 - endif() 21 - - if(APPLE) 22 - - # Ad-hoc sign the dylibs 23 - - add_custom_command(TARGET ${libname} 24 - - POST_BUILD 25 - - COMMAND codesign --sign - $<TARGET_FILE:${libname}> 26 - - WORKING_DIRECTORY ${COMPILER_RT_LIBRARY_OUTPUT_DIR} 27 - - ) 28 - - endif() 29 - endif() 30 - install(TARGETS ${libname} 31 - ARCHIVE DESTINATION ${COMPILER_RT_LIBRARY_INSTALL_DIR} 32 - 2.14.1 33 -
···
+1 -1
pkgs/development/compilers/llvm/9/compiler-rt/default.nix
··· 56 patches = [ 57 # https://github.com/llvm/llvm-project/commit/947f9692440836dcb8d88b74b69dd379d85974ce 58 ../../common/compiler-rt/glibc.patch 59 - ./codesign.patch # Revert compiler-rt commit that makes codesign mandatory 60 ./gnu-install-dirs.patch 61 ../../common/compiler-rt/libsanitizer-no-cyclades-9.patch 62 # Fix build on armv6l
··· 56 patches = [ 57 # https://github.com/llvm/llvm-project/commit/947f9692440836dcb8d88b74b69dd379d85974ce 58 ../../common/compiler-rt/glibc.patch 59 + ../../common/compiler-rt/7-12-codesign.patch # Revert compiler-rt commit that makes codesign mandatory 60 ./gnu-install-dirs.patch 61 ../../common/compiler-rt/libsanitizer-no-cyclades-9.patch 62 # Fix build on armv6l