Skip to content
Snippets Groups Projects
Verified Commit eb4a21a6 authored by Olivier Benz's avatar Olivier Benz
Browse files

Add comment regarding patch

parent cd6b3d85
No related branches found
No related tags found
No related merge requests found
...@@ -45,9 +45,11 @@ RUN cd /tmp \ ...@@ -45,9 +45,11 @@ RUN cd /tmp \
&& gpg --verify "ghc-$GHC_VERSION-src.tar.xz.sig" "ghc-$GHC_VERSION-src.tar.xz" \ && gpg --verify "ghc-$GHC_VERSION-src.tar.xz.sig" "ghc-$GHC_VERSION-src.tar.xz" \
&& tar -xJf "ghc-$GHC_VERSION-src.tar.xz" \ && tar -xJf "ghc-$GHC_VERSION-src.tar.xz" \
&& cd "ghc-$GHC_VERSION" \ && cd "ghc-$GHC_VERSION" \
# Apply patches ## Apply patch: Bump max LLVM version to 19 (not inclusive)
## https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12726
&& mv "/tmp/$GHC_VERSION.patch" . \ && mv "/tmp/$GHC_VERSION.patch" . \
&& patch -p0 <"$GHC_VERSION.patch" \ && patch -p0 <"$GHC_VERSION.patch" \
## Configure and build
&& ./boot.source \ && ./boot.source \
&& ./configure \ && ./configure \
## Use the LLVM backend ## Use the LLVM backend
......
...@@ -44,9 +44,11 @@ RUN cd /tmp \ ...@@ -44,9 +44,11 @@ RUN cd /tmp \
&& gpg --verify "ghc-$GHC_VERSION-src.tar.xz.sig" "ghc-$GHC_VERSION-src.tar.xz" \ && gpg --verify "ghc-$GHC_VERSION-src.tar.xz.sig" "ghc-$GHC_VERSION-src.tar.xz" \
&& tar -xJf "ghc-$GHC_VERSION-src.tar.xz" \ && tar -xJf "ghc-$GHC_VERSION-src.tar.xz" \
&& cd "ghc-$GHC_VERSION" \ && cd "ghc-$GHC_VERSION" \
# Apply patches ## Apply patch: Bump max LLVM version to 19 (not inclusive)
## https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12726
&& mv "/tmp/$GHC_VERSION.patch" . \ && mv "/tmp/$GHC_VERSION.patch" . \
&& patch -p0 <"$GHC_VERSION.patch" \ && patch -p0 <"$GHC_VERSION.patch" \
## Configure and build
&& ./boot.source \ && ./boot.source \
&& ./configure --disable-ld-override LD=ld.gold \ && ./configure --disable-ld-override LD=ld.gold \
## Use the LLVM backend ## Use the LLVM backend
......
...@@ -44,9 +44,11 @@ RUN cd /tmp \ ...@@ -44,9 +44,11 @@ RUN cd /tmp \
&& gpg --verify "ghc-$GHC_VERSION-src.tar.xz.sig" "ghc-$GHC_VERSION-src.tar.xz" \ && gpg --verify "ghc-$GHC_VERSION-src.tar.xz.sig" "ghc-$GHC_VERSION-src.tar.xz" \
&& tar -xJf "ghc-$GHC_VERSION-src.tar.xz" \ && tar -xJf "ghc-$GHC_VERSION-src.tar.xz" \
&& cd "ghc-$GHC_VERSION" \ && cd "ghc-$GHC_VERSION" \
# Apply patches ## Apply patch: Bump max LLVM version to 19 (not inclusive)
## https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12726
&& mv "/tmp/$GHC_VERSION.patch" . \ && mv "/tmp/$GHC_VERSION.patch" . \
&& patch -p0 <"$GHC_VERSION.patch" \ && patch -p0 <"$GHC_VERSION.patch" \
## Configure and build
&& ./boot.source \ && ./boot.source \
&& ./configure --disable-ld-override LD=ld.gold \ && ./configure --disable-ld-override LD=ld.gold \
## Use the LLVM backend ## Use the LLVM backend
......
...@@ -44,9 +44,11 @@ RUN cd /tmp \ ...@@ -44,9 +44,11 @@ RUN cd /tmp \
&& gpg --verify "ghc-$GHC_VERSION-src.tar.xz.sig" "ghc-$GHC_VERSION-src.tar.xz" \ && gpg --verify "ghc-$GHC_VERSION-src.tar.xz.sig" "ghc-$GHC_VERSION-src.tar.xz" \
&& tar -xJf "ghc-$GHC_VERSION-src.tar.xz" \ && tar -xJf "ghc-$GHC_VERSION-src.tar.xz" \
&& cd "ghc-$GHC_VERSION" \ && cd "ghc-$GHC_VERSION" \
# Apply patches ## Apply patch: Bump max LLVM version to 19 (not inclusive)
## https://gitlab.haskell.org/ghc/ghc/-/merge_requests/12726
&& mv "/tmp/$GHC_VERSION.patch" . \ && mv "/tmp/$GHC_VERSION.patch" . \
&& patch -p0 <"$GHC_VERSION.patch" \ && patch -p0 <"$GHC_VERSION.patch" \
## Configure and build
&& ./boot.source \ && ./boot.source \
&& ./configure --disable-ld-override LD=ld.gold \ && ./configure --disable-ld-override LD=ld.gold \
## Use the LLVM backend ## Use the LLVM backend
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment