[SCons] Validate values of target_arch

This commit is contained in:
Ray Speth 2016-07-19 17:41:16 -04:00
parent aa42aa5c81
commit 8ef4f6445f

View file

@ -134,10 +134,12 @@ if os.name == 'nt':
installed version. Specify '12.0' for Visual Studio 2013 or '14.0'
for Visual Studio 2015.""",
''),
('target_arch',
"""Target architecture. The default is the same
architecture as the installed version of Python.""",
target_arch)])
EnumVariable(
'target_arch',
"""Target architecture. The default is the same architecture as the
installed version of Python.""",
target_arch, ('amd64', 'x86'))
])
opts.AddVariables(*windows_compiler_options)
pickCompilerEnv = Environment()