diff options
author | Joseph Brill <48932340+jcbrill@users.noreply.github.com> | 2022-06-17 12:20:47 (GMT) |
---|---|---|
committer | Joseph Brill <48932340+jcbrill@users.noreply.github.com> | 2022-06-17 12:20:47 (GMT) |
commit | 27cd6c4f48674d065e730dc06249367d1037430d (patch) | |
tree | 11beb6dcd46ca555587051d62475d318d0183533 /SCons | |
parent | a5cb849e6584f5feb9240f4ca773799ac7a6de57 (diff) | |
download | SCons-27cd6c4f48674d065e730dc06249367d1037430d.zip SCons-27cd6c4f48674d065e730dc06249367d1037430d.tar.gz SCons-27cd6c4f48674d065e730dc06249367d1037430d.tar.bz2 |
Update boolean symbols
Diffstat (limited to 'SCons')
-rw-r--r-- | SCons/Tool/MSCommon/vc.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/SCons/Tool/MSCommon/vc.py b/SCons/Tool/MSCommon/vc.py index ae5cf3c..e193d91 100644 --- a/SCons/Tool/MSCommon/vc.py +++ b/SCons/Tool/MSCommon/vc.py @@ -137,12 +137,15 @@ class _Const: BOOLEAN_SYMBOLS = {} BOOLEAN_EXTERNAL = {} - for bool, symbol_list in [ - (False, (0, '0', False, 'False', 'FALSE', 'false', 'No', 'NO', 'no', None, '')), - (True, (1, '1', True, 'True', 'TRUE', 'true', 'Yes', 'YES', 'yes')), + for bool, symbol_list, symbol_case_list in [ + (False, (False, 0, '0', None, ''), ('False', 'No', 'F', 'N')), + (True, (True, 1, '1'), ('True', 'Yes', 'T', 'Y')), ]: - BOOLEAN_SYMBOLS[bool] = symbol_list - for symbol in symbol_list: + BOOLEAN_SYMBOLS[bool] = list(symbol_list) + for symbol in symbol_case_list: + BOOLEAN_SYMBOLS[bool].extend([symbol, symbol.lower(), symbol.upper()]) + + for symbol in BOOLEAN_SYMBOLS[bool]: BOOLEAN_EXTERNAL[symbol] = bool MSVC_RUNTIME_DEFINITION = namedtuple('MSVCRuntime', [ |