From 8ef4f6445f6458df1959abfa91af2ff181550ae1 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Tue, 19 Jul 2016 17:41:16 -0400 Subject: [PATCH] [SCons] Validate values of target_arch --- SConstruct | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/SConstruct b/SConstruct index 75c7bb4a6..998dfee38 100644 --- a/SConstruct +++ b/SConstruct @@ -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()