From 423725b34d80ad09d6ed47393cda2aa183814010 Mon Sep 17 00:00:00 2001 From: Refael Ackermann Date: Tue, 1 Jul 2014 10:48:28 +0300 Subject: [PATCH] configure: better detect windows 'bitness' (WOW64) Signed-off-by: Fedor Indutny --- configure | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure b/configure index daea8cad121..c0a4ace2dbb 100755 --- a/configure +++ b/configure @@ -402,7 +402,8 @@ def host_arch_cc(): def host_arch_win(): """Host architecture check using environ vars (better way to do this?)""" - arch = os.environ.get('PROCESSOR_ARCHITECTURE', 'x86') + observed_arch = os.environ.get('PROCESSOR_ARCHITECTURE', 'x86') + arch = os.environ.get('PROCESSOR_ARCHITEW6432', observed_arch) matchup = { 'AMD64' : 'x64',