Fix case insensitivity check for --build=type

This commit is contained in:
Jukka Jylänki
2015-04-10 14:40:54 +03:00
parent bff15bfd71
commit c7f3f2ff51

2
emsdk
View File

@@ -1357,7 +1357,7 @@ def main():
build_type = build_type.group(1) build_type = build_type.group(1)
build_types = ['Debug', 'MinSizeRel', 'RelWithDebInfo', 'Release'] build_types = ['Debug', 'MinSizeRel', 'RelWithDebInfo', 'Release']
try: try:
build_type_index = [x.lower() for x in build_types].index(build_type) build_type_index = [x.lower() for x in build_types].index(build_type.lower())
CMAKE_BUILD_TYPE_OVERRIDE = build_types[build_type_index] CMAKE_BUILD_TYPE_OVERRIDE = build_types[build_type_index]
sys.argv[i] = '' sys.argv[i] = ''
except: except: