Fix emscripten-version parsing (#902)

See https://github.com/emscripten-core/emscripten/pull/15144
This commit is contained in:
Sam Clegg
2021-09-28 07:01:09 -07:00
committed by GitHub
parent 4d84356204
commit c60dd3bd4f

View File

@@ -2204,7 +2204,7 @@ def parse_emscripten_version(emscripten_root):
version_file = os.path.join(emscripten_root, 'emscripten-version.txt') version_file = os.path.join(emscripten_root, 'emscripten-version.txt')
with open(version_file) as f: with open(version_file) as f:
version = f.read().strip() version = f.read().strip()
version = version.strip('"').split('.') version = version.strip('"').split('-')[0].split('.')
return [int(v) for v in version] return [int(v) for v in version]