diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-03-03 04:46:31 +0100 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-03-03 04:46:31 +0100 |
commit | 0580d85143edfc40b1c821d8cad86c9094ab44a1 (patch) | |
tree | ec6ef0ce1c1836a79c714c704b35b29b744b4cb0 /pkgs/development/compilers/llvm | |
parent | 87bfed87336d693fcf2de10c9a1861ea4d6ca6ae (diff) | |
parent | 5b933f35e6c1176836d17396d9d717feef13e364 (diff) | |
download | nixlib-0580d85143edfc40b1c821d8cad86c9094ab44a1.tar nixlib-0580d85143edfc40b1c821d8cad86c9094ab44a1.tar.gz nixlib-0580d85143edfc40b1c821d8cad86c9094ab44a1.tar.bz2 nixlib-0580d85143edfc40b1c821d8cad86c9094ab44a1.tar.lz nixlib-0580d85143edfc40b1c821d8cad86c9094ab44a1.tar.xz nixlib-0580d85143edfc40b1c821d8cad86c9094ab44a1.tar.zst nixlib-0580d85143edfc40b1c821d8cad86c9094ab44a1.zip |
Merge remote-tracking branch 'origin/staging-next' into staging
Diffstat (limited to 'pkgs/development/compilers/llvm')
-rw-r--r-- | pkgs/development/compilers/llvm/15/compiler-rt/default.nix | 20 | ||||
-rw-r--r-- | pkgs/development/compilers/llvm/15/compiler-rt/skip-explicit-codesign.patch | 12 |
2 files changed, 1 insertions, 31 deletions
diff --git a/pkgs/development/compilers/llvm/15/compiler-rt/default.nix b/pkgs/development/compilers/llvm/15/compiler-rt/default.nix index eb0be521daa8..18ff90b6ff00 100644 --- a/pkgs/development/compilers/llvm/15/compiler-rt/default.nix +++ b/pkgs/development/compilers/llvm/15/compiler-rt/default.nix @@ -86,25 +86,7 @@ stdenv.mkDerivation { ../../common/compiler-rt/darwin-plistbuddy-workaround.patch # See: https://github.com/NixOS/nixpkgs/pull/194634#discussion_r999829893 ../../common/compiler-rt/armv7l-15.patch - ] - # The `compiler-rt` build inspects `ld` to figure out whether it needs to - # explicitly call `codesign`: - # https://github.com/llvm/llvm-project/blob/27ef42bec80b6c010b7b3729ed0528619521a690/compiler-rt/cmake/Modules/AddCompilerRT.cmake#L409-L422 - # - # In our case, despite (currently) having an `ld` version than 609, we don't - # need an explicit codesigning step because `postLinkSignHook` handles this - # for us. - # - # Unfortunately there isn't an easy way to override - # `NEED_EXPLICIT_ADHOC_CODESIGN`. - # - # Adding `codesign` as a build input also doesn't currently work because, as - # of this writing, `codesign` in nixpkgs doesn't support the `--sign` alias - # which the `compiler-rt` build uses. See here for context: - # https://github.com/NixOS/nixpkgs/pull/194634#issuecomment-1272116014 - # - # So, for now, we patch `compiler-rt` to skip the explicit codesigning step. - ++ lib.optional stdenv.hostPlatform.isDarwin ./skip-explicit-codesign.patch; + ]; # TSAN requires XPC on Darwin, which we have no public/free source files for. We can depend on the Apple frameworks # to get it, but they're unfree. Since LLVM is rather central to the stdenv, we patch out TSAN support so that Hydra diff --git a/pkgs/development/compilers/llvm/15/compiler-rt/skip-explicit-codesign.patch b/pkgs/development/compilers/llvm/15/compiler-rt/skip-explicit-codesign.patch deleted file mode 100644 index 894a74e74d46..000000000000 --- a/pkgs/development/compilers/llvm/15/compiler-rt/skip-explicit-codesign.patch +++ /dev/null @@ -1,12 +0,0 @@ -diff --git a/cmake/Modules/AddCompilerRT.cmake b/cmake/Modules/AddCompilerRT.cmake ---- a/cmake/Modules/AddCompilerRT.cmake -+++ b/cmake/Modules/AddCompilerRT.cmake -@@ -406,7 +406,7 @@ function(add_compiler_rt_runtime name type) - if (HAD_ERROR) - message(FATAL_ERROR "${CMAKE_LINKER} failed with status ${HAD_ERROR}") - endif() -- set(NEED_EXPLICIT_ADHOC_CODESIGN 1) -+ set(NEED_EXPLICIT_ADHOC_CODESIGN 0) # `postLinkSignHook` handles this for us - if ("${LD_V_OUTPUT}" MATCHES ".*ld64-([0-9.]+).*") - string(REGEX REPLACE ".*ld64-([0-9.]+).*" "\\1" HOST_LINK_VERSION ${LD_V_OUTPUT}) - if (HOST_LINK_VERSION VERSION_GREATER_EQUAL 609) |