commit 8e66878777b39dedf06939fd78ee88d4a44b2724
Author: Jan Palus <[email protected]>
Date:   Wed Feb 15 20:02:56 2023 +0100

    disable new pass manager in llvm backend
    
    for llvm 15 compatibility
    
    from: 
https://gitlab.haskell.org/ghc/ghc/-/commit/0cc16aaf89d7dc3963764b7193ceac73e4e3329b

 ghc.spec     |  2 ++
 llvm15.patch | 11 +++++++++++
 2 files changed, 13 insertions(+)
---
diff --git a/ghc.spec b/ghc.spec
index e91fcd6..3cb9708 100644
--- a/ghc.spec
+++ b/ghc.spec
@@ -80,6 +80,7 @@ Patch1:               %{name}-pkgdir.patch
 Patch3:                build.patch
 Patch4:                buildpath-abi-stability.patch
 Patch5:                x32-use-native-x86_64-insn.patch
+Patch6:                llvm15.patch
 URL:           http://haskell.org/ghc/
 BuildRequires: OpenAL-devel
 BuildRequires: OpenGL-GLU-devel
@@ -329,6 +330,7 @@ cd ..
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
 
 %build
 %{__bash} ./utils/llvm-targets/gen-data-layout.sh > llvm-targets
diff --git a/llvm15.patch b/llvm15.patch
new file mode 100644
index 0000000..8b06313
--- /dev/null
+++ b/llvm15.patch
@@ -0,0 +1,11 @@
+--- ghc-8.10.7/llvm-passes.orig        2021-06-21 08:54:36.000000000 +0200
++++ ghc-8.10.7/llvm-passes     2023-02-15 11:44:08.415463266 +0100
+@@ -1,5 +1,5 @@
+ [
+-(0, "-mem2reg -globalopt"),
+-(1, "-O1 -globalopt"),
+-(2, "-O2")
++(0, "-enable-new-pm=0 -mem2reg -globalopt"),
++(1, "-enable-new-pm=0 -O1 -globalopt"),
++(2, "-enable-new-pm=0 -O2")
+ ]
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ghc.git/commitdiff/8e66878777b39dedf06939fd78ee88d4a44b2724

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to