From c7f3f2ff51621dcc93aba64ce808a41f1b6db87e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jukka=20Jyl=C3=A4nki?= Date: Fri, 10 Apr 2015 14:40:54 +0300 Subject: [PATCH] Fix case insensitivity check for --build=type --- emsdk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/emsdk b/emsdk index a55af46..07c2281 100755 --- a/emsdk +++ b/emsdk @@ -1357,7 +1357,7 @@ def main(): build_type = build_type.group(1) build_types = ['Debug', 'MinSizeRel', 'RelWithDebInfo', 'Release'] 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] sys.argv[i] = '' except: