Add `-haddock` to prepare-system.sh and .gitlab-ci.yml
authorTakenobu Tani <takenobu.hs@gmail.com>
Sun, 14 Apr 2019 12:31:05 +0000 (21:31 +0900)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Mon, 3 Jun 2019 02:54:43 +0000 (22:54 -0400)
To cover ci conditions from ghc8.6 to 8.9, I add `-haddock` option
to `.circleci/prepare-system.sh` and .gitlab-ci.yml.
after including `mk/flavours/*`.

.circleci/prepare-system.sh
.gitlab-ci.yml
mk/flavours/perf.mk

index 804e0fd..fbbb81b 100755 (executable)
@@ -30,6 +30,7 @@ BuildFlavour=$BUILD_FLAVOUR
 ifneq "\$(BuildFlavour)" ""
 include mk/flavours/\$(BuildFlavour).mk
 endif
+GhcLibHcOpts+=-haddock
 EOF
 
 case "$(uname)" in
index f9b2a42..ab88747 100644 (file)
@@ -608,6 +608,7 @@ nightly-i386-windows-hadrian:
       python boot
       bash -c './configure --enable-tarballs-autodownload GHC=`pwd`/toolchain/bin/ghc HAPPY=`pwd`/toolchain/bin/happy ALEX=`pwd`/toolchain/bin/alex $CONFIGURE_ARGS'
     - bash -c "echo include mk/flavours/${BUILD_FLAVOUR}.mk > mk/build.mk"
+    - bash -c "echo 'GhcLibHcOpts+=-haddock' >> mk/build.mk"
     - bash -c "PATH=`pwd`/toolchain/bin:$PATH make -j`mk/detect-cpu-count.sh`"
     - bash -c "PATH=`pwd`/toolchain/bin:$PATH make binary-dist TAR_COMP_OPTS=-1"
     - bash -c 'make V=0 test THREADS=`mk/detect-cpu-count.sh` JUNIT_FILE=../../junit.xml'
index 93c5919..ee85662 100644 (file)
@@ -1,7 +1,7 @@
 SRC_HC_OPTS        = -O -H64m
 GhcStage1HcOpts    = -O2
 GhcStage2HcOpts    = -O2
-GhcLibHcOpts       = -O2 -haddock
+GhcLibHcOpts       = -O2
 BUILD_PROF_LIBS    = YES
 #HADDOCK_DOCS
 #BUILD_SPHINX_HTML