X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=blobdiff_plain;f=compiler%2FMakefile;h=d6348282ce12f26940e450985928ee32a2dd9c36;hp=c2cf2257ebaa4bcaaa086a23770b059d442b6a23;hb=9da4639011348fb6c318e3cba4b08622f811d9c4;hpb=6e8a4b336eeb90d130d83758d24db7e11bbecdfc diff --git a/compiler/Makefile b/compiler/Makefile index c2cf225..d634828 100644 --- a/compiler/Makefile +++ b/compiler/Makefile @@ -719,8 +719,8 @@ all :: $(odir)/ghc-inplace ghc-inplace # (On other system, -W isn't a pwd flag at all.) ifeq "$(TARGETPLATFORM)" "i386-unknown-mingw32" -# MSys -SCRIPT_SHELL = $(shell cd /bin; pwd -W)/sh +# MSys (...and cygwin with a mingw toolchain) +SCRIPT_SHELL = $(shell cd /bin; pwd -W 2>/dev/null || echo "/bin")/sh else # Cygwin and Unix SCRIPT_SHELL = /bin/sh