Skip to content
Snippets Groups Projects
Commit e5773fa6 authored by Alp Mestanogullari's avatar Alp Mestanogullari :squid: Committed by Andrey Mokhov
Browse files

Switch to the fixed Cabal branch in CI and add a fix for Natural (#640)

* use @quasicomputational's Cabal branch in CI for the time being

* workaround can't-use-Natural-in-base
parent 843790ea
No related branches found
No related tags found
No related merge requests found
......@@ -104,6 +104,13 @@ install:
- mv .git ghc/hadrian
- cd ghc/hadrian && git reset --hard HEAD && cd ..
# We checkout a patched Cabal.
# See: https://github.com/snowleopard/hadrian/issues/634
- cd libraries/Cabal/
- git remote add quasicomputational https://github.com/quasicomputational/cabal.git
- git fetch quasicomputational && git checkout cwd-independent-check
- cd ../../
cache:
directories:
- $HOME/.cabal
......
......@@ -20,6 +20,13 @@ install:
# Copy new Hadrian into ./ghc/hadrian
- cp -r new-hadrian ghc\hadrian
# We checkout a patched Cabal.
# See: https://github.com/snowleopard/hadrian/issues/634
- cd ghc/libraries/Cabal/
- git remote add quasicomputational https://github.com/quasicomputational/cabal.git
- git fetch quasicomputational && git checkout cwd-independent-check
- cd ../../../
# Install Alex and Happy
- set PATH=C:\Users\appveyor\AppData\Roaming\local\bin;%PATH%
- ghc\hadrian\stack install --install-ghc alex happy > nul
......
......@@ -31,6 +31,10 @@ compile:
# in CircleCI is a separate process, thus you can't "cd" for the other lines
- cd ghc/hadrian; git reset --hard HEAD
# We checkout a patched Cabal.
# See: https://github.com/snowleopard/hadrian/issues/634
- cd ghc/libraries/Cabal/ && git remote add quasicomputational https://github.com/quasicomputational/cabal.git && git fetch quasicomputational && git checkout cwd-independent-check
- cd ghc; ./boot && PATH=~/.cabal/bin:$PATH ./configure
# XXX: export PATH doesn't work well either, so we use inline env
......
......@@ -27,8 +27,15 @@ packageArgs = do
-- This fixes the 'unknown symbol stat' issue.
-- See: https://github.com/snowleopard/hadrian/issues/259.
, builder (Ghc CompileCWithGhc) ? arg "-optc-O2" ]
, builder (Ghc CompileCWithGhc) ? arg "-optc-O2"
-- See https://ghc.haskell.org/trac/ghc/ticket/15286 and
-- https://phabricator.haskell.org/D4880
, builder (Ghc CompileHs) ? mconcat
[ input "//Natural.hs" ? pure ["-O0", "-fno-omit-interface-pragmas"]
, input "//Num.hs" ? pure ["-O0", "-fno-ignore-interface-pragmas"]
]
]
------------------------------ bytestring ------------------------------
, package bytestring ?
builder CabalFlags ? intLib == integerSimple ? arg "integer-simple"
......
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