mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 03:39:59 +00:00
haskell.compiler: apply LLVM split sections fix unconditionally (#556637)
This commit is contained in:
@@ -254,21 +254,14 @@
|
||||
"sha256-vtjT+TL/7sYPu4rcVV3xCqJQ+uqkyBbf9l0KIi97j/0=";
|
||||
})
|
||||
]
|
||||
++
|
||||
lib.optionals
|
||||
(
|
||||
(stdenv.hostPlatform.isRiscV64 || stdenv.hostPlatform.isLoongArch64)
|
||||
&& lib.versionAtLeast version "9.10"
|
||||
&& lib.versionOlder version "9.12"
|
||||
)
|
||||
[
|
||||
# Fix LLVM backend split sections causing bin/out reference cycles: https://gitlab.haskell.org/ghc/ghc/-/issues/26770
|
||||
(fetchpatch {
|
||||
name = "ghc-llvm-fix-split-sections.patch";
|
||||
url = "https://gitlab.haskell.org/ghc/ghc/-/commit/b18b2c42c32488ad6d3480a56a1fcd753cad2023.patch";
|
||||
hash = "sha256-kEgZARwcdnWcvjuTfyqnn8V1zAUczZN0qiy/1WbCy1s=";
|
||||
})
|
||||
]
|
||||
++ lib.optionals (lib.versionAtLeast version "9.10" && lib.versionOlder version "9.12") [
|
||||
# Fix LLVM backend split sections causing bin/out reference cycles: https://gitlab.haskell.org/ghc/ghc/-/issues/26770
|
||||
(fetchpatch {
|
||||
name = "ghc-llvm-fix-split-sections.patch";
|
||||
url = "https://gitlab.haskell.org/ghc/ghc/-/commit/b18b2c42c32488ad6d3480a56a1fcd753cad2023.patch";
|
||||
hash = "sha256-kEgZARwcdnWcvjuTfyqnn8V1zAUczZN0qiy/1WbCy1s=";
|
||||
})
|
||||
]
|
||||
++ lib.optionals (lib.versionOlder version "9.12") [
|
||||
(fetchpatch {
|
||||
name = "ghc-rts-Fix-compile-on-powerpc64-elf-v1.patch";
|
||||
|
||||
Reference in New Issue
Block a user