From 5ed8bd0689649f985ff1b89a63f064c078adc6a6 Mon Sep 17 00:00:00 2001 From: Alexey Pavlov Date: Thu, 12 Apr 2018 10:18:48 +0200 Subject: [PATCH 11/23] detect architecture --- configure.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.py b/configure.py index 7006ee65..957b0323 100755 --- a/configure.py +++ b/configure.py @@ -1178,7 +1178,11 @@ def host_arch_win(): """Host architecture check using environ vars (better way to do this?)""" observed_arch = os.environ.get('PROCESSOR_ARCHITECTURE', 'x86') - arch = os.environ.get('PROCESSOR_ARCHITEW6432', observed_arch) + arch = os.environ.get('PROCESSOR_ARCHITEW6432') + if arch == 'AMD64': + return 'x86' + else: + return 'AMD64' matchup = { 'AMD64' : 'x64', -- 2.17.0.windows.1