From: Junio C Hamano Date: Sat, 9 Feb 2019 04:44:53 +0000 (-0800) Subject: Merge branch 'js/mingw-host-cpu' X-Git-Tag: v2.21.0-rc1~17 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/6951c5fd9fc221520b80de1da340918887f5803b?ds=inline;hp=-c Merge branch 'js/mingw-host-cpu' Windows update. * js/mingw-host-cpu: mingw: fix CPU reporting in `git version --build-options` --- 6951c5fd9fc221520b80de1da340918887f5803b diff --combined compat/mingw.h index 30d9fb3e36,363f047df0..98407744f2 --- a/compat/mingw.h +++ b/compat/mingw.h @@@ -6,6 -6,25 +6,25 @@@ typedef _sigset_t sigset_t #include #include + #ifdef __MINGW64_VERSION_MAJOR + /* + * In Git for Windows, we cannot rely on `uname -m` to report the correct + * architecture: /usr/bin/uname.exe will report the architecture with which the + * current MSYS2 runtime was built, not the architecture for which we are + * currently compiling (both 32-bit and 64-bit `git.exe` is built in the 64-bit + * Git for Windows SDK). + */ + #undef GIT_HOST_CPU + /* This was figured out by looking at `cpp -dM