aboutsummaryrefslogtreecommitdiffstats
path: root/configure.py
diff options
context:
space:
mode:
authorJack Lloyd <jack@randombit.net>2017-12-10 16:10:12 -0500
committerJack Lloyd <jack@randombit.net>2017-12-10 16:17:12 -0500
commit538226ac37d2b54702830fc96abd7e374f0fdc9c (patch)
tree7e79c96c14004208beb4a37fb2f0a9ba35cdec7a /configure.py
parent7bb0f13450a95a2a816e78f277e31edd230f7f89 (diff)
Fix bakefile arch setting for x86-32
Restrict bakefile to x86 since thats all that is supported.
Diffstat (limited to 'configure.py')
-rwxr-xr-xconfigure.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.py b/configure.py
index daa29552c..abcaa6619 100755
--- a/configure.py
+++ b/configure.py
@@ -1854,6 +1854,8 @@ def create_template_vars(source_paths, build_config, options, modules, cc, arch,
'arch': options.arch,
'submodel': options.cpu,
+ 'bakefile_arch': 'x86' if options.arch == 'x86_32' else 'x86_64',
+
'innosetup_arch': innosetup_arch(options.os, options.arch),
'mp_bits': choose_mp_bits(),
@@ -2883,6 +2885,9 @@ def validate_options(options, info_os, info_cc, available_module_policies):
if options.os != 'windows' or options.compiler != 'msvc' or options.build_shared_lib is False:
raise UserError("Building via bakefile is only supported for MSVC DLL build")
+ if options.arch not in ['x86_64', 'x86_32']:
+ raise UserError("Bakefile only supports x86 targets")
+
# Warnings
if options.os == 'windows' and options.compiler != 'msvc':
logging.warning('The windows target is oriented towards MSVC; maybe you want cygwin or mingw')