Cygwin 1.7 supports mmap

git has shipped for years with MMAP enabled in the stock distribution, there are no reports of problems / failures on the list relating to this. Leave the default as-is on v1.5 due to lack of knowlege of this working on earlier Cygwin. Signed-off-by: Mark Levedahl <mlevedahl@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Mark Levedahl committed Jul 19, 2013 at 19:08 UTC f593ef77792c36eeb1b92ed3661ed284502afdfb
1 file changed +4 -4
config.mak.uname
+4 -4
@@ -160,6 +160,10 @@ ifeq ($(uname_O),Cygwin)
160 NO_IPV6 = YesPlease
161 OLD_ICONV = UnfortunatelyYes
162 NO_THREAD_SAFE_PREAD = YesPlease
163 + # There are conflicting reports about this.
164 + # On some boxes NO_MMAP is needed, and not so elsewhere.
165 + # Try commenting this out if you suspect MMAP is more efficient
166 + NO_MMAP = YesPlease
167 else
168 NO_REGEX = UnfortunatelyYes
169 endif
@@ -167,10 +171,6 @@ ifeq ($(uname_O),Cygwin)
171 NO_FAST_WORKING_DIRECTORY = UnfortunatelyYes
172 NO_TRUSTABLE_FILEMODE = UnfortunatelyYes
173 NO_ST_BLOCKS_IN_STRUCT_STAT = YesPlease
170 - # There are conflicting reports about this.
171 - # On some boxes NO_MMAP is needed, and not so elsewhere.
172 - # Try commenting this out if you suspect MMAP is more efficient
173 - NO_MMAP = YesPlease
174 X = .exe
175 COMPAT_OBJS += compat/cygwin.o
176 UNRELIABLE_FSTAT = UnfortunatelyYes