summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2014-12-23 16:18:20 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2014-12-23 16:18:20 +0100
commit6239845086628344405869d9b018706c6e7ec53e (patch)
tree790d1fa64a502467e9bdd2cdbfb7f322f1a21a58
parent30a9eeee375c8dbd77f569ba45157fbfde9ccfe1 (diff)
Better x64 detection for windows
-rw-r--r--makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/makefile b/makefile
index 5d6180f2693..91ba31f1372 100644
--- a/makefile
+++ b/makefile
@@ -139,8 +139,9 @@ ifeq ($(TARGETOS),win32)
# Autodetect PTR64
ifndef PTR64
-ifneq (,$(findstring mingw64-w64,$(PATH)))
-PTR64=1
+WIN_TEST_GCC := $(shell gcc --version)
+ifeq ($(findstring x86_64,$(WIN_TEST_GCC)),x86_64)
+ PTR64=1
endif
endif