[commit: ghc] wip/andrey/windows-cabal: Hadrian: Use the Cabal build script on Windows by default (f804497)

git at git.haskell.org git at git.haskell.org
Sun Mar 31 15:08:24 UTC 2019


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/andrey/windows-cabal
Link       : http://ghc.haskell.org/trac/ghc/changeset/f80449799015c010501884fc7b3fdeae002ff375/ghc

>---------------------------------------------------------------

commit f80449799015c010501884fc7b3fdeae002ff375
Author: Andrey Mokhov <andrey.mokhov at gmail.com>
Date:   Thu Jan 10 00:18:24 2019 +0000

    Hadrian: Use the Cabal build script on Windows by default
    
    The Stack build script `build.stack.bat` currently fails on Windows
    when invoked with the `--configure` flag, see:
    
    https://ghc.haskell.org/trac/ghc/ticket/15982
    
    The Cabal build script `build.cabal.bat` works reliably on my Windows
    machine, so I am proposing to switch to it by default, that is, to run
    it from the default `build.bat` script.
    
    The Stack build script can still be run directly if need be.


>---------------------------------------------------------------

f80449799015c010501884fc7b3fdeae002ff375
 hadrian/build.bat | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/hadrian/build.bat b/hadrian/build.bat
index 01a869f..e71f886 100644
--- a/hadrian/build.bat
+++ b/hadrian/build.bat
@@ -1,6 +1,4 @@
 @echo off
-setlocal
-cd %~dp0
 
-rem By default on Windows we build Hadrian using Stack
-./build.stack.bat %*
+rem By default on Windows we build Hadrian using Cabal
+hadrian/build.cabal.bat %*



More information about the ghc-commits mailing list