File tree Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -6,25 +6,6 @@ typedef _sigset_t sigset_t;
6
6
#include <winsock2.h>
7
7
#include <ws2tcpip.h>
8
8
9
- #ifdef __MINGW64_VERSION_MAJOR
10
- /*
11
- * In Git for Windows, we cannot rely on `uname -m` to report the correct
12
- * architecture: /usr/bin/uname.exe will report the architecture with which the
13
- * current MSYS2 runtime was built, not the architecture for which we are
14
- * currently compiling (both 32-bit and 64-bit `git.exe` is built in the 64-bit
15
- * Git for Windows SDK).
16
- */
17
- #undef GIT_HOST_CPU
18
- /* This was figured out by looking at `cpp -dM </dev/null`'s output */
19
- #if defined(__x86_64__ )
20
- #define GIT_HOST_CPU "x86_64"
21
- #elif defined(__i686__ )
22
- #define GIT_HOST_CPU "i686"
23
- #else
24
- #error "Unknown architecture"
25
- #endif
26
- #endif
27
-
28
9
/* MinGW-w64 reports to have flockfile, but it does not actually have it. */
29
10
#ifdef __MINGW64_VERSION_MAJOR
30
11
#undef _POSIX_THREAD_SAFE_FUNCTIONS
Original file line number Diff line number Diff line change @@ -574,9 +574,11 @@ else
574
574
prefix = /usr/
575
575
ifeq (MINGW32,$(MSYSTEM))
576
576
prefix = /mingw32
577
+ HOST_CPU = i686
577
578
endif
578
579
ifeq (MINGW64,$(MSYSTEM))
579
580
prefix = /mingw64
581
+ HOST_CPU = x86_64
580
582
else
581
583
COMPAT_CFLAGS += -D_USE_32BIT_TIME_T
582
584
BASIC_LDFLAGS += -Wl,--large-address-aware
You can’t perform that action at this time.
0 commit comments