Commit 08270b6d authored by Petr Pudlak's avatar Petr Pudlak
Browse files

Build the squeeze schroot with profiling enabled



Since we're installing cabal from scratch, we can take the advantage of
it and build everything with profiling enabled (including libraries that
are installed during the installation of cabal).

Also since we're using a newer version of cabal, we can let it install
packages in parallel, speeding up the schroot build.
Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent fd46a374
......@@ -200,7 +200,7 @@ function install_cabal {
http://www.haskell.org/cabal/release/cabal-install-${CABAL_INSTALL_VERSION}/cabal-install-${CABAL_INSTALL_VERSION}.tar.gz
tar xzf cabal-install.tar.gz
cd cabal-install-${CABAL_INSTALL_VERSION}
./bootstrap.sh --global
EXTRA_CONFIGURE_OPTS="--enable-library-profiling" ./bootstrap.sh --global
}
popd
[ -d "$TDIR" ] && rm -rf "$TDIR"
......@@ -259,8 +259,9 @@ case $DIST_RELEASE in
in_chroot -- \
cabal update
# sinec we're using Cabal >=1.16, we can use the parallel install option
in_chroot -- \
cabal install --global \
cabal install --global -j --enable-library-profiling \
attoparsec-0.11.1.0 \
base64-bytestring-1.0.0.1 \
blaze-builder-0.3.3.2 \
......
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