From 656ae5f823488d466f2be8baa021c5a94d18f278 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 10 Dec 2013 12:53:37 -0400 Subject: [PATCH] try setting TMPDIR for collect2 to not use C:\Windows --- Build/EvilLinker.hs | 2 +- standalone/windows/build.sh | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Build/EvilLinker.hs b/Build/EvilLinker.hs index a49c37a923..9dbd2c4c64 100644 --- a/Build/EvilLinker.hs +++ b/Build/EvilLinker.hs @@ -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 diff --git a/standalone/windows/build.sh b/standalone/windows/build.sh index e6f7b7e9e8..e7f0069b53 100755 --- a/standalone/windows/build.sh +++ b/standalone/windows/build.sh @@ -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