From d6d0b1fe20397bf073f11d579f5c0c38785e071a Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 24 Oct 2017 12:33:44 -0400 Subject: try to avoid TerminateProcess link error on windows Building with stack, it failed: `_TerminateProcess' referenced in section `.text' of .stack-work\dist\5f9bc736\build\git-annex\git-annex-tmp\Utility\WinProcess.o: defined in discarded section `.text' of C:/Users/jenkins/AppData/Local/Programs/stack/i386-windows/ghc-8.0.2/mingw/bin/../lib/gcc/i686-w64-mingw32/5.2.0/../../../../i686-w64-mingw32/lib/../lib/libkernel32.a(dacgs01154.o) This is a reversion of 6d66a81ca98f8579bf06f7fb724ed733670d39b9, to try the other way to implement it, which will hopefully avoid the problem. --- git-annex.cabal | 1 + 1 file changed, 1 insertion(+) (limited to 'git-annex.cabal') diff --git a/git-annex.cabal b/git-annex.cabal index 65bf31a08..f332c6f0f 100644 --- a/git-annex.cabal +++ b/git-annex.cabal @@ -1061,6 +1061,7 @@ Executable git-annex Utility.LockFile.Windows Utility.LockPool.Windows Utility.WinProcess + C-Sources: Utility/winprocess.c else Other-Modules: Utility.LockFile.Posix -- cgit v1.2.3