From 6239845086628344405869d9b018706c6e7ec53e Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Tue, 23 Dec 2014 16:18:20 +0100 Subject: Better x64 detection for windows --- makefile | 5 +++-- 1 file 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 -- cgit v1.2.3