try setting TMPDIR for collect2 to not use C:\Windows

This commit is contained in:
Joey Hess 2013-12-10 12:53:37 -04:00
parent 5f859e648c
commit 656ae5f823
2 changed files with 5 additions and 1 deletions

View file

@ -123,7 +123,7 @@ runAtFile p s f extraparams = do
when (null $ opts c) $
error $ "failed to find any options for " ++ f ++ " in >>>" ++ s ++ "<<<"
writeFile f (opts c)
print "in file: >>>" ++ (opts c) ++ "<<<"
print $ "in file: >>>" ++ (opts c) ++ "<<<"
out <- getOutput (cmd c) (atFile f:extraparams) (env c)
removeFile f
return out

View file

@ -20,6 +20,10 @@ withcyg () {
# This tells git-annex where to upgrade itself from.
UPGRADE_LOCATION=http://downloads.kitenet.net/git-annex/windows/current/git-annex-installer.exe
mkdir tmp || true
TMPDIR=tmp
export TMPDIR
# Uncomment to get rid of cabal installed libraries.
#rm -rf /c/Users/jenkins/AppData/Roaming/cabal /c/Users/jenkins/AppData/Roaming/ghc