summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorWilliam Deegan <bill@baddogconsulting.com>2019-06-19 00:43:00 (GMT)
committerWilliam Deegan <bill@baddogconsulting.com>2019-06-19 00:43:00 (GMT)
commit097b3932eaa083c9f446eab4d8c3ebac09f0aa24 (patch)
tree6051ad00a398931ed3cc8232b83ed637a0b65e0b /src/engine
parent3ae19b9307c1602f303f3a4fe15792bd5a042f51 (diff)
downloadSCons-097b3932eaa083c9f446eab4d8c3ebac09f0aa24.zip
SCons-097b3932eaa083c9f446eab4d8c3ebac09f0aa24.tar.gz
SCons-097b3932eaa083c9f446eab4d8c3ebac09f0aa24.tar.bz2
Switch back to None with proper comparison using is instead of not
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/SCons/Tool/MSCommon/vc.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/engine/SCons/Tool/MSCommon/vc.py b/src/engine/SCons/Tool/MSCommon/vc.py
index d41d572..b3ba0b8 100644
--- a/src/engine/SCons/Tool/MSCommon/vc.py
+++ b/src/engine/SCons/Tool/MSCommon/vc.py
@@ -497,8 +497,8 @@ def _check_cl_exists_in_vc_dir(env, vc_dir, msvc_version):
# Set default value to be -1 as "" which is the value for x86/x86 yields true when tested
# if not host_trgt_dir
- host_trgt_dir = _HOST_TARGET_TO_CL_DIR.get((host_platform, target_platform), -1)
- if host_trgt_dir == -1:
+ host_trgt_dir = _HOST_TARGET_TO_CL_DIR.get((host_platform, target_platform), None)
+ if host_trgt_dir is None:
debug('_check_cl_exists_in_vc_dir(): unsupported host/target platform combo')
return False
@@ -513,8 +513,8 @@ def _check_cl_exists_in_vc_dir(env, vc_dir, msvc_version):
# Set default value to be -1 as "" which is the value for x86/x86 yields true when tested
# if not host_trgt_dir
- host_trgt_dir = _HOST_TARGET_TO_CL_DIR.get(('x86', target_platform), -1)
- if host_trgt_dir == -1:
+ host_trgt_dir = _HOST_TARGET_TO_CL_DIR.get(('x86', target_platform), None)
+ if host_trgt_dir is None:
return False
cl_path = os.path.join(vc_dir, 'bin', host_trgt_dir, _CL_EXE_NAME)