Skip to content

Commit

Permalink
Disable haddock on i386 using PFRAG
Browse files Browse the repository at this point in the history
  • Loading branch information
blackgnezdo committed Oct 30, 2020
1 parent 2e81306 commit 3707bd2
Show file tree
Hide file tree
Showing 3 changed files with 3,523 additions and 3,511 deletions.
10 changes: 10 additions & 0 deletions lang/ghc/Makefile
Expand Up @@ -147,6 +147,15 @@ post-extract:

BOOTSTRAP_SHLIBS = ${WRKDIR}/ghc-${BIN_VER}-shlibs-${MACHINE_ARCH}

# Disables haddock as it runs out of memory on i386.
.if ${MACHINE_ARCH:Mi386}
HADDOCK_DOCS = NO
PKG_ARGS = -Dno_i386=0
.else
HADDOCK_DOCS = YES
PKG_ARGS = -Dno_i386=1
.endif

post-patch:
cd ${WRKDIR}/ghc-${BIN_VER} && \
LD_LIBRARY_PATH=${BOOTSTRAP_SHLIBS} \
Expand All @@ -166,6 +175,7 @@ post-patch:
done
cp ${WRKSRC}/mk/build.mk{.sample,}
echo libraries/base_CONFIGURE_OPTS+=--configure-option=--with-libcharset=no >> ${WRKSRC}/mk/build.mk
echo HADDOCK_DOCS=${HADDOCK_DOCS} >> ${WRKSRC}/mk/build.mk

do-test:
ulimit -c 0 -n 1024 && \
Expand Down

0 comments on commit 3707bd2

Please sign in to comment.