From 538226ac37d2b54702830fc96abd7e374f0fdc9c Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Sun, 10 Dec 2017 16:10:12 -0500 Subject: Fix bakefile arch setting for x86-32 Restrict bakefile to x86 since thats all that is supported. --- configure.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'configure.py') 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') -- cgit v1.2.3