Skip to content
Snippets Groups Projects
Commit 0c5a2437 authored by Ben Gamari's avatar Ben Gamari :turtle:
Browse files

Disable optimization when building Cabal

The Cabal build is enormous and constitutes the majority of the build
time of the AArch64 and armv7 images. This cuts the Cabal build time
down by 60%.
parent 40ffd379
Branches armv7
No related tags found
1 merge request!21Disable optimization when building Cabal
Pipeline #7092 passed
...@@ -48,7 +48,7 @@ RUN git clone https://github.com/haskell/Cabal ...@@ -48,7 +48,7 @@ RUN git clone https://github.com/haskell/Cabal
WORKDIR /Cabal WORKDIR /Cabal
RUN git checkout cabal-install-v2.4.1.0 RUN git checkout cabal-install-v2.4.1.0
WORKDIR /Cabal/cabal-install WORKDIR /Cabal/cabal-install
RUN ./bootstrap.sh --global --no-doc RUN EXTRA_CONFIGURE_OPTS=--disable-optimization ./bootstrap.sh --global --no-doc
RUN ls /Cabal/cabal-install/dist/build RUN ls /Cabal/cabal-install/dist/build
......
...@@ -52,7 +52,7 @@ RUN git clone https://github.com/haskell/Cabal ...@@ -52,7 +52,7 @@ RUN git clone https://github.com/haskell/Cabal
WORKDIR /Cabal WORKDIR /Cabal
RUN git checkout cabal-install-v2.4.1.0 RUN git checkout cabal-install-v2.4.1.0
WORKDIR /Cabal/cabal-install WORKDIR /Cabal/cabal-install
RUN ./bootstrap.sh --global --no-doc RUN EXTRA_CONFIGURE_OPTS=--disable-optimization ./bootstrap.sh --global --no-doc
RUN ls /Cabal/cabal-install/dist/build RUN ls /Cabal/cabal-install/dist/build
......
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