try to build with a gcc response file

This commit is contained in:
Joey Hess 2013-12-05 17:17:35 -04:00
parent 71a25eb20e
commit 7208663b5c

View file

@ -41,7 +41,14 @@ touch last-incremental-failed
# Build git-annex
withcyg cabal configure
withcyg cabal build
withcyg cabal build || true
# Works around link failure https://ghc.haskell.org/trac/ghc/ticket/8596
# using a response file.
rm -f build.log gcc.opt
withcyg cabal build --ghc-options='-v -keep-tmp-files' > build.log 2>&1
grep '"dist\\build\\git-annex\\git-annex.exe"' build.log | sed -e 's/^"[^"]*" //' -e 's/\\/\//g' > gcc.opt
gcc @gcc.opt
# Build the installer
cabal install nsis