Commit 0c5a2437 authored by Ben Gamari's avatar Ben Gamari 🐢

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
......@@ -48,7 +48,7 @@ RUN git clone https://github.com/haskell/Cabal
WORKDIR /Cabal
RUN git checkout cabal-install-v2.4.1.0
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
......
......@@ -52,7 +52,7 @@ RUN git clone https://github.com/haskell/Cabal
WORKDIR /Cabal
RUN git checkout cabal-install-v2.4.1.0
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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment